Owner
RequiredTextUser or organisation.
This input offers a picker for repository from your connected account. You can also supply its value directly.
octocat
Merge, squash or rebase a pull request.
First, connect GitHub in Services. Then open Actions → + → GitHub and choose Merge a Pull Request.
Running or testing this action changes something in your connected service.
The repository decides which methods are allowed, so squash on a repository that forbids it is a 405 rather than a fallback to merge.
405 means the pull request cannot be merged as things stand: conflicts, a failing required check, a missing review. The message says which. 409 means the branch moved after Head SHA was read — the safety catch working as intended.
Set Head SHA from a Get a Pull Request step when the action must not merge something that changed underneath it.
Open an input to choose its value. Keep a fixed value with Text, receive it from Shortcuts, ask when the action runs, or use an Earlier Step. Read how input sources work.
User or organisation.
This input offers a picker for repository from your connected account. You can also supply its value directly.
octocat
Name only, without the owner and without .git.
This input offers a picker for repository from your connected account. You can also supply its value directly.
Hello-World
The number shown in the interface.
This input offers a picker for pull request from your connected account. You can also supply its value directly.
7
Must be one the repository allows.
Choices: merge, squash, rebase
Default: merge
Defaults to GitHub's generated title.
Extra detail below the title.
Refuse the merge unless the branch is still at this commit.
6dcb09b5b57875f334f61aebed695e2e4193db5e
In the action editor, open Output → Returned Value to choose fields for your shortcut. These are the response fields described by the app; a service may omit an optional field or return an empty list. JSON File contains the full response.
| Returned field | Type | Meaning |
|---|---|---|
merged | boolean | True when the merge happened. |
sha | string | The merge commit. |
message | string | Human-readable result. |
If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.
Request: PUT https://api.github.com/repos/{owner}/{repo}/pulls/{pull_number}/merge
Action identifier: github.pulls.merge.v1
Permissions declared for this action: pull_requests:write, contents:write. The account’s own access rules also apply.
| Input | Request key | Location |
|---|---|---|
| Owner | owner | path |
| Repository | repo | path |
| Pull Request Number | pull_number | path |
| Method | merge_method | body |
| Commit Title | commit_title | body |
| Commit Message | commit_message | body |
| Head SHA | sha | body |