Skip to main content

Merge pull request

Merge a pull request with a merge commit, squash or rebase.

Command in the GitHub toolkit · id ooa.github/merge_pull_request · 9 inputs (4 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Endpoint addressStringNohttps://api.github.comAPI address. Keep the default for github.com; for GitHub Enterprise Server use https://github.yourcompany.com/api/v3.
TokenCredentialYesPersonal access token or app token from the vault, with access to the repository. Or leave it empty and choose a connection that signs in, which gets and renews the token.
OwnerStringYesUser or organization that owns the repository, e.g. acme-corp.
RepoStringYesRepository name without the owner, e.g. billing-service.
NumberNumberYesPull request number.
MethodStringNomergemerge, squash or rebase.
Commit titleStringNoTitle of the merge commit; GitHub picks one when empty.
Commit messageStringNoExtra text for the merge commit.
Only if the branch is still at (commit SHA)StringNoMerge only if the source branch is still at this commit id.

Outputs​

OutputTypeWhat it is
shaStringCommit id of the merge.
mergedBooleanTrue when merged.