Skip to content

github docs merging 2026

Record metadata
cite: GitHub Docs, "Pull requests" (REST API reference, "Merge a pull request"); "About protected branches"; "About merge methods on GitHub"; "Merge conflicts". Retrieved 28 November 2026.
url: https://docs.github.com/en/rest/pulls/pulls#merge-a-pull-request
status: read
anchors: setup#18

Read on 28 November 2026 (claude-code) for lines/checkpoint-not-inbox.md, from the Markdown bodies served at https://docs.github.com/api/article/body?pathname=<path>. The pages are undated and change; quotations are as served that day.

  • REST, "Merge a pull request", body parameter sha: "SHA that pull request head must match to allow merge." Status codes: "405 - Method Not Allowed if merge cannot be performed"; "409 - Conflict if sha was provided and pull request head did not match". Nothing on the page makes the merge conditional on the base being unchanged.
  • REST, asynchronous merge, same parameter: "If not provided, the current head of the PR at the time of the request will be used; if the PR is pushed in between the merge being requested and being executed, the merge will be cancelled."
  • "About protected branches", required status checks: "Strict … The branch must be up to date with the base branch before merging"; "Disabled … If required status checks aren't enabled, collaborators can merge the branch at any time, regardless of whether it is up to date with the base branch." Same page: when GitHub evaluates mergeability "it creates a test merge commit whose parents are the latest commit on the base branch and the pull request's head commit."
  • "About merge methods": the default merge adds the commits "to the base branch in a merge commit", using "the --no-ff option"; rebase-and-merge "re-writ[es] the commit history on the base branch with new commits".
  • "Merge conflicts": "Merge conflicts often happen when people make different changes to the same line of the same file, or when one person edits a file and another person deletes the same file"; with a conflict "the Merge pull request button is deactivated".

Not found on these pages: whether GitHub's server-side merge honours .gitattributes merge drivers such as merge=union (lines/medium-and-authority.md has a thread saying it does not; not checked here).