Skip to content

Add ref support to gh cache list command #8710

Description

@toshimaru

Describe the feature or problem you’d like to solve

We have many caches in the repository, so I'd like to delete caches associated with branches that have already been merged.
To accomplish this, I need to filter caches by a specific branch.

image)

Proposed solution

Add ref support to gh cache list command.

ref string
The full Git reference for narrowing down the cache. The ref for a branch should be formatted as refs/heads/. To reference a pull request use refs/pull//merge.

ref. https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository

Additional context

Activity

  1. ghost added
    enhancementa request to improve CLI
    on Feb 17, 2024
  2. ghost added on Feb 17, 2024
  3. ghost added
    gh-cacherelating to the gh cache command
    on Feb 20, 2024
  4. ghost added on Feb 20, 2024
  5. ghost removed on Feb 20, 2024
  6. williammartin commented on Feb 20, 2024

    @williammartin
    Member

    Thanks for creating this issue. The enhancement request makes sense to me in line with the previous one #8674. I've labelled this help wanted to help us track the work but I know you've already created a PR for review. Cheers.

  7. ghost closed this as completedin #8711on Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-cacherelating to the gh cache commandhelp wantedContributions welcome

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions