Skip to content

Fix --interval flags docs in gh pr checks - #12021

Closed
2003Aditya wants to merge 3 commits into
cli:trunkfrom
2003Aditya:interval
Closed

2003Aditya wants to merge 3 commits into
cli:trunkfrom
2003Aditya:interval

Conversation

@2003Aditya

@2003Aditya 2003Aditya commented Oct 25, 2025 •

Copy link
Copy Markdown
Contributor

Fixes #11999

@2003Aditya
2003Aditya requested a review from a team as a code owner October 25, 2025 18:57
@2003Aditya
2003Aditya requested a review from BagToad October 25, 2025 18:57
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Oct 25, 2025
@cliAutomation

Copy link
Copy Markdown
Contributor

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 babakks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@babakks

babakks commented Oct 26, 2025

Copy link
Copy Markdown
Member

Maybe we can just write it like this?

cmd.Flags().IntVarP(&interval, "interval", "i", 10, "Refresh interval in seconds in watch mode)

WDYT?

@babakks babakks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the PR, @2003Aditya! 🙏

Can you please fix the following?

Comment thread pkg/cmd/pr/checks/checks.go Resolved
@babakks babakks changed the title Fix --interval flags docs in gh pr checks (#11999) Fix --interval flags docs in gh pr checks Oct 30, 2025

@babakks babakks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That case is fixed but others have appeared. Maybe your IDE is doing this.

Comment on lines -65 to +75
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
`, "`"),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines should stay indented with tabs. Seems like the last commit made replaced them with whitespaces.

Comment on lines -265 to +271
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))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same problem here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@babakks I am really sorry for this , Let me check this again .

@babakks

babakks commented Oct 30, 2025 •

Copy link
Copy Markdown
Member

Closing this in favour of #12053.

@babakks babakks closed this Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix --interval option docs in pr checks

3 participants