-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
enhancementa request to improve CLIa request to improve CLIgh-releaserelating to the gh release commandrelating to the gh release commandhelp wantedContributions welcomeContributions welcome
Description
Describe the feature or problem you’d like to solve
As a CLI user, I want to find (and eventually delete) outdated release drafts. To this end, I want to use gh release list to find releases with ages above a certain threshold.
Proposed solution
Extend gh release list with one or more of the following features:
--order {asc|desc}similar to gh cache list which can flip the sorting from the current "newest first" to "oldest first" (bypublishedAtwould fit the current table columns, but bycreatedAtwould also be acceptable).--jsonsimilar to gh issue list and gh workflow list so that we can get the fields we need for all releases at once (rather than one-by-one withgh release view).- (Some other new flag to filter releases "before date X" or "older than duration X". Not as desirable as the other two options due to having no precedent in other
listcommands, and being overly specific?)
Additional context
See also this related issue, which describes a separate feature request but one benefiting the same desired use case:
While it is currently technically possible to achieve the same result through the use of gh release view and jq, that would require N+1 commands and be rather tedious, due to release list lacking the JSON option currently provided by release view.
aleksey-kuleshov-wolt and siilarsi
Metadata
Metadata
Assignees
Labels
enhancementa request to improve CLIa request to improve CLIgh-releaserelating to the gh release commandrelating to the gh release commandhelp wantedContributions welcomeContributions welcome