diff --git a/pages/common/gh-pr-merge.md b/pages/common/gh-pr-merge.md new file mode 100644 index 0000000000..9f9ad2348f --- /dev/null +++ b/pages/common/gh-pr-merge.md @@ -0,0 +1,24 @@ +# gh pr merge + +> Merge GitHub pull requests. +> More information: . + +- Merge the pull request associated with the current branch interactively: + +`gh pr merge` + +- Merge the specified pull request, interactively: + +`gh pr merge {{pr_number}}` + +- Merge the pull request, removing the branch on both the local and the remote: + +`gh pr merge --delete-branch` + +- Merge the current pull request with the specified merge strategy: + +`gh pr merge --{{merge|squash|rebase}}` + +- Squash the current pull request into one commit with the message body and merge: + +`gh pr merge --squash --body="{{commit_message_body}}"` diff --git a/pages/common/gh-pr.md b/pages/common/gh-pr.md index 848bce81c1..c2a242f621 100644 --- a/pages/common/gh-pr.md +++ b/pages/common/gh-pr.md @@ -19,7 +19,7 @@ `gh pr review --approve` -- Merge the pull request associated with the current branch, removing the branch on both the local and the remote: +- Merge the pull request associated with the current branch interactively: `gh pr merge`