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" (by publishedAt would fit the current table columns, but by createdAt would also be acceptable).
--json similar 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 with gh 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
list commands, 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.
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 listto find releases with ages above a certain threshold.Proposed solution
Extend
gh release listwith 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).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:
gh release list: Add a flag to include only drafts #8578While it is currently technically possible to achieve the same result through the use of
gh release viewandjq, that would require N+1 commands and be rather tedious, due torelease listlacking the JSON option currently provided byrelease view.