-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
gh-pr-checks: add pages; gh-pr-merge: update page #18506
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
base: main
Are you sure you want to change the base?
Conversation
gh pr checks
and gh pr merge
tldr pages…example - Remove "Part of the GitHub CLI" line from both pages - Restore interactive merge example as first example in gh-pr-merge - Update flags to show both short and long forms: [-m|--merge], [-sd|--squash --delete-branch], [-r|--rebase], [-s|--squash] - Merge short options where applicable (e.g., -sd for -s -d) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
`gh pr merge` | ||
|
||
- Merge the specified pull request, interactively: | ||
- Merge with a merge commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could use some more explanation. I don't know but I'm assuming this is correct
- Merge with a merge commit: | |
- Merge the current branch into the specified pull request: |
- Merge with a merge commit: | ||
|
||
`gh pr merge {{pr_number}}` | ||
`gh pr merge {{123}} {{[-m|--merge]}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`gh pr merge {{123}} {{[-m|--merge]}}` | |
`gh pr merge {{pr_number}} {{[-m|--merge]}}` |
`gh pr merge {{123}} {{[-m|--merge]}}` | ||
|
||
- Merge the pull request, removing the branch on both the local and the remote: | ||
- Squash and merge, then delete the branch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Squash and merge, then delete the branch: | |
- Squash and merge a pull request, then delete the branch: |
- Squash and merge, then delete the branch: | ||
|
||
`gh pr merge {{[-d|--delete-branch]}}` | ||
`gh pr merge {{123}} {{[-sd|--squash --delete-branch]}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`gh pr merge {{123}} {{[-sd|--squash --delete-branch]}}` | |
`gh pr merge {{pr_number}} {{[-sd|--squash --delete-branch]}}` |
- Rebase and merge: | ||
|
||
`gh pr merge --{{merge|squash|rebase}}` | ||
`gh pr merge {{123}} {{[-r|--rebase]}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`gh pr merge {{123}} {{[-r|--rebase]}}` | |
`gh pr merge {{pr_number}} {{[-r|--rebase]}}` |
- Enable auto-merge (squash): | ||
|
||
`gh pr merge --{{merge|squash|rebase}} {{[-t|--subject]}} {{commit_message}}` | ||
`gh pr merge {{123}} --auto {{[-s|--squash]}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`gh pr merge {{123}} --auto {{[-s|--squash]}}` | |
`gh pr merge {{pr_number}} --auto {{[-s|--squash]}}` |
Add two GitHub CLI pages:
gh pr checks
: view and watch CI checks (--watch
,--required
).gh pr merge
: common merge strategies (--merge
,--squash --delete-branch
,--rebase
,--auto
,--admin
).All examples follow the tldr style and pass
tldrl
.Validation:
tldrl
on both files → no issues.gh
command documentation.