gh-pr-checks: add page; gh-pr-merge: update page (#18506)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Nelson Figueroa <30811275+nelsonfigueroa@users.noreply.github.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
fankex
2025-10-13 13:54:07 +08:00
committed by GitHub
parent 55081d6725
commit 13e128edea
2 changed files with 31 additions and 15 deletions
+20
View File
@@ -0,0 +1,20 @@
# gh pr checks
> View CI checks for a GitHub pull request.
> More information: <https://cli.github.com/manual/gh_pr_checks>.
- Show checks for the pull request of the current branch:
`gh pr checks`
- Show checks for a specific pull request:
`gh pr checks {{pr_number}}`
- Watch checks and update in real time until completion:
`gh pr checks {{pr_number}} --watch`
- Show only required checks:
`gh pr checks {{pr_number}} --required`
+11 -15
View File
@@ -1,32 +1,28 @@
# gh pr merge
> Merge GitHub pull requests.
> Merge a GitHub pull request.
> More information: <https://cli.github.com/manual/gh_pr_merge>.
- Merge the pull request associated with the current branch interactively:
`gh pr merge`
- Merge the specified pull request, interactively:
- Merge the current branch into the specified pull request:
`gh pr merge {{pr_number}}`
`gh pr merge {{pr_number}} {{[-m|--merge]}}`
- Merge the pull request, removing the branch on both the local and the remote:
- Squash and merge a pull request, then delete the branch:
`gh pr merge {{[-d|--delete-branch]}}`
`gh pr merge {{pr_number}} {{[-sd|--squash --delete-branch]}}`
- Merge the current pull request with the specified merge strategy:
- Rebase and merge:
`gh pr merge --{{merge|squash|rebase}}`
`gh pr merge {{pr_number}} {{[-r|--rebase]}}`
- Merge the current pull request with the specified merge strategy and commit message:
- Enable auto-merge (squash):
`gh pr merge --{{merge|squash|rebase}} {{[-t|--subject]}} {{commit_message}}`
`gh pr merge {{pr_number}} --auto {{[-s|--squash]}}`
- Squash the current pull request into one commit with the message body and merge:
- Merge with admin privileges (if allowed):
`gh pr merge {{[-s|--squash]}} {{[-b|--body]}} "{{commit_message_body}}"`
- Display help:
`gh pr merge {{[-h|--help]}}`
`gh pr merge {{pr_number}} --admin`