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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Endpoint address | String | No | https://api.github.com | API address. Keep the default for github.com; for GitHub Enterprise Server use https://github.yourcompany.com/api/v3. |
| Token | Credential | Yes | Personal 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. | |
| Owner | String | Yes | User or organization that owns the repository, e.g. acme-corp. | |
| Repo | String | Yes | Repository name without the owner, e.g. billing-service. | |
| Number | Number | Yes | Pull request number. | |
| Method | String | No | merge | merge, squash or rebase. |
| Commit title | String | No | Title of the merge commit; GitHub picks one when empty. | |
| Commit message | String | No | Extra text for the merge commit. | |
| Only if the branch is still at (commit SHA) | String | No | Merge only if the source branch is still at this commit id. |
Outputs
| Output | Type | What it is |
|---|---|---|
| sha | String | Commit id of the merge. |
| merged | Boolean | True when merged. |