Skip to content
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

List caches not in specified branch list #52

Open
tpak opened this issue Jan 31, 2023 · 1 comment
Open

List caches not in specified branch list #52

tpak opened this issue Jan 31, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tpak
Copy link

tpak commented Jan 31, 2023

Describe the feature or problem you’d like to solve

Return a list of caches not associated to a branch or branches specified by the user.

Proposed solution

-x <string> Exclude branches from result set

ex:
gh actions-cache list --order asc --sort last-used -x staging,development,main

this would return all caches except those on the 3 branches staging,development,main

This would allow a user to find all non-critical branch caches and clean them up. Combined with a date filter, as requested in #51 would make cache query and cleanup more flexible. This new flag could be specified in conjunction with either the list or delete commands.

@tpak tpak added the enhancement New feature or request label Jan 31, 2023
@tpak
Copy link
Author

tpak commented Jan 31, 2023

a special use case could also exclude all protected branches in a repository

ex:
-x protected

the reserved keyword "protected" would find and eliminate all protected branches from the list or delete command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants