Repository navigation
Fix --interval flags docs in gh pr checks - #12021
2003Aditya wants to merge 3 commits into
Conversation
|
Hi! Thanks for the pull request. Please ensure that this change is linked to an issue by mentioning an issue number in the description of the pull request. If this pull request would close the issue, please put the word 'Fixes' before the issue number somewhere in the pull request body. If this is a tiny change like fixing a typo, feel free to ignore this message. |
babakks
left a comment
There was a problem hiding this comment.
I just touched on this on the issue (#11999 (comment)):
Also, please note that our preference is to keep the backticks around
--watch, so that we can render it correctly on our docs website. It's not really nice at the moment, but keeping the backticks would help when we have fixed the issue with the website docs.
|
Maybe we can just write it like this? cmd.Flags().IntVarP(&interval, "interval", "i", 10, "Refresh interval in seconds in watch mode)WDYT? |
babakks
left a comment
There was a problem hiding this comment.
Thanks for updating the PR, @2003Aditya! 🙏
Can you please fix the following?
--interval flags docs in gh pr checks
babakks
left a comment
There was a problem hiding this comment.
That case is fixed but others have appeared. Maybe your IDE is doing this.
| Show CI status for a single pull request. | ||
| Show CI status for a single pull request. | ||
|
|
||
| Without an argument, the pull request that belongs to the current branch | ||
| is selected. | ||
| Without an argument, the pull request that belongs to the current branch | ||
| is selected. | ||
|
|
||
| When the %[1]s--json%[1]s flag is used, it includes a %[1]sbucket%[1]s field, which categorizes | ||
| the %[1]sstate%[1]s field into %[1]spass%[1]s, %[1]sfail%[1]s, %[1]spending%[1]s, %[1]sskipping%[1]s, or %[1]scancel%[1]s. | ||
| When the %[1]s--json%[1]s flag is used, it includes a %[1]sbucket%[1]s field, which categorizes | ||
| the %[1]sstate%[1]s field into %[1]spass%[1]s, %[1]sfail%[1]s, %[1]spending%[1]s, %[1]sskipping%[1]s, or %[1]scancel%[1]s. | ||
|
|
||
| Additional exit codes: | ||
| 8: Checks pending | ||
| `, "`"), | ||
| Additional exit codes: | ||
| 8: Checks pending | ||
| `, "`"), |
There was a problem hiding this comment.
These lines should stay indented with tabs. Seems like the last commit made replaced them with whitespaces.
| query PullRequestStatusChecks($id: ID!, $endCursor: String) { | ||
| node(id: $id) { | ||
| ...on PullRequest { | ||
| %s | ||
| } | ||
| } | ||
| }`, api.RequiredStatusCheckRollupGraphQL("$id", "$endCursor", includeEvent)) | ||
| query PullRequestStatusChecks($id: ID!, $endCursor: String) { | ||
| node(id: $id) { | ||
| ...on PullRequest { | ||
| %s | ||
| } | ||
| } | ||
| }`, api.RequiredStatusCheckRollupGraphQL("$id", "$endCursor", includeEvent)) |
There was a problem hiding this comment.
@babakks I am really sorry for this , Let me check this again .
|
Closing this in favour of #12053. |
Fixes #11999