Merge a pull request
Squash-merges the exact pull request row named by pullRequestID, pinned to the head commit and the number the caller confirmed. Requires membership in the owning organization of a task linked to this pull request — the task that published it or a task that reviewed it — and current GitHub access to the repository. 404 covers an unknown pull request, one linked to no organization the caller belongs to, and one whose GitHub access the caller has lost; the three are deliberately indistinguishable.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
the exact 40-character lowercase head commit SHA the user reviewed; GitHub refuses the merge if the PR head has moved past it
40^[0-9a-f]{40}$the number of the pull request the user reviewed; the merge is refused with 409 if the task's primary published pull request is no longer this one
x >= 1squash Response
OK
1