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

gh run view, gh run ls don't expose information about which attempt of the run it is #9099

Closed
cawfeecake opened this issue May 20, 2024 · 3 comments · Fixed by #8905
Closed
Labels
enhancement a request to improve CLI gh-run relating to the gh run command help wanted Contributions welcome

Comments

@cawfeecake
Copy link
Contributor

Describe the feature or problem you’d like to solve

b/c this information isn't available as, e.g. a --json input, the only way to get it is w/ the gh api command

the field is marshaled here, but never stated to be a field.

additionally, the field as it currently is is named "Attempts" which, due to being plural, eludes to the idea that this field represents "how many attempts have been done of this run" rather than what it really represents: which attempt this run is, i.e. if "1", it was the first attempt, "2" is the 2nd, etc.

Proposed solution

expose the field as attempt

@cawfeecake cawfeecake added the enhancement a request to improve CLI label May 20, 2024
@cliAutomation cliAutomation added the needs-triage needs to be reviewed label May 20, 2024
@cawfeecake cawfeecake changed the title gh run view and ... ls don't expose information about which attempt the run is gh run view, gh run ls don't expose information about which attempt of the run it is May 20, 2024
@williammartin williammartin added the gh-run relating to the gh run command label May 21, 2024
@williammartin
Copy link
Member

Thanks for creating this @cawfeecake. I agree with everything you said but I'm still curious what you are actually using this for? This kind of information really helps us when we look at how our community use the CLI and how we should steward it in the future.

@williammartin
Copy link
Member

I've labelled this help wanted though I understand you already have a PR open, it's just a way for us to keep track of issues that we aren't working on ourselves.

@williammartin williammartin added help wanted Contributions welcome and removed needs-triage needs to be reviewed labels May 21, 2024
@cawfeecake
Copy link
Contributor Author

cawfeecake commented May 21, 2024

what you are actually using this for?

i believe i ran into this issue when i was researching run outcomes, and i went to try to list runs (gh run ls --json) and filter down to just the runs that had been attempted more than once. that's when i discovered that the information wasn't an available --json field. however, it is accessible via a gh api call, so it feels like users should be able to get that information thru the comfortable gh run command group. additionally, i have seen that in the past there have been PRs here with this same goal of exposing more information in a command group that is currently only accessible thru the gh tool by writing a gh api command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement a request to improve CLI gh-run relating to the gh run command help wanted Contributions welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@williammartin @cawfeecake @cliAutomation and others