Skip to main content
POST
Merge a pull request

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

pullRequestID
string<uuid>
required

Body

application/json
expected_head_sha
string
required

the exact 40-character lowercase head commit SHA the user reviewed; GitHub refuses the merge if the PR head has moved past it

Required string length: 40
Pattern: ^[0-9a-f]{40}$
expected_pr_number
integer<int64>
required

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

Required range: x >= 1
method
enum<string>
required
Available options:
squash

Response

OK

sha
string
required
Minimum string length: 1