-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add repo filtering functionality #9
Conversation
I like this @bxffour I think we just need the ability to send stdin as a file instead.
faas-cli has code for this in its invoke command that you can copy from for inspiration. https://github.com/openfaas/faas-cli/blob/master/commands/invoke.go#L93 |
@bxffour we'll need an example in the README for this too |
Signed-off-by: Nana Kwadwo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Can there be a release baked that includes this functionality please? |
Yes it's been released today |
Description
This pull request introduces a new feature that allows users to filter the repositories when generating GitHub Actions usage statistics using the CLI tool.
Related Issue:
Before:
Prior to this change, the CLI tool provided general usage statistics for all repositories associated with the target GitHub organization/user. There was no built-in capability to filter the repositories and focus on a select few.
After:
With this enhancement, users can now specify a set of repositories to filter when generating GitHub Actions usage statistics. This enables them to focus on the specific repositories they care about and obtain more targeted insights.
Changes Made:
-include
flag or by providing a file containing repository names with the-include-file
flag.Examples
Before this change
Output:
After this change
Output:
Providing the repo list through a file
cat repos.txt | ./actions-usage -user bxffour -token-file pat.txt -by-repo --include-file -
--include
and theinclude-file
options. The filter will include both optionsOutput:
The output still includes both
bxffour.github.io
andbxffour/geoinfo
even though they were provided through different flags.Benefits