Owner
RequiredTextUser or organisation.
This input offers a picker for repository from your connected account. You can also supply its value directly.
octocat
Edit the title or description, close it, or reopen it.
First, connect GitHub in Services. Then open Actions → + → GitHub and choose Update a Pull Request.
Running or testing this action changes something in your connected service.
Send only what should change. State closed closes without merging; open reopens it, unless the branch has since been deleted.
As with issues, the REST API cannot delete a pull request — closing is the whole of delete, and a closed pull request stays visible. To clean up afterwards, Delete a Branch removes the branch it came from.
Base can be changed to retarget the pull request at a different branch. Head cannot.
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
Replaces the existing title.
Replaces the whole description. Markdown.
Supply a choice value for this input.
Choices: open, closed
Retarget at a different branch.
This input offers a picker for branch from your connected account. You can also supply its value directly.
main
Only meaningful when the source is a fork.
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 |
|---|---|---|
number | integer | The number shown in the UI. |
id | integer | Whole-number value. |
title | string | Text value. |
state | string | open or closed. A merged pull request is closed. |
draft | boolean | True or false. |
merged_at | string | Null unless it was merged — the way to tell merged from simply closed. |
body | string | The description, as Markdown. |
html_url | string | The pull request page. |
created_at | string | ISO 8601. |
updated_at | string | Text value. |
closed_at | string | Text value. |
user | object | Who opened it. |
user.login | string | Username. |
user.id | integer | Whole-number value. |
user.html_url | string | Their profile page. |
user.avatar_url | string | Text value. |
user.type | string | User, Organization or Bot. |
assignees | array | A list of values. |
assignees[].login | string | Username. |
assignees[].id | integer | Whole-number value. |
assignees[].html_url | string | Their profile page. |
assignees[].avatar_url | string | Text value. |
assignees[].type | string | User, Organization or Bot. |
requested_reviewers | array | Review requests still outstanding. |
requested_reviewers[].login | string | Username. |
requested_reviewers[].id | integer | Whole-number value. |
requested_reviewers[].html_url | string | Their profile page. |
requested_reviewers[].avatar_url | string | Text value. |
requested_reviewers[].type | string | User, Organization or Bot. |
labels | array | A list of values. |
labels[].name | string | Text value. |
labels[].color | string | Text value. |
head | object | Where the changes come from. |
head.ref | string | Branch name. |
head.sha | string | Latest commit on that branch. |
head.label | string | owner:branch. |
base | object | Where they are going. |
base.ref | string | Branch name. |
base.sha | string | Text value. |
If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.
Request: PATCH https://api.github.com/repos/{owner}/{repo}/pulls/{pull_number}
Action identifier: github.pulls.update.v1
Permissions declared for this action: pull_requests: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 |
| Title | title | body |
| Description | body | body |
| State | state | body |
| Into Branch | base | body |
| Maintainers Can Edit | maintainer_can_modify | body |