Owner
RequiredTextUser or organisation.
This input offers a picker for repository from your connected account. You can also supply its value directly.
octocat
Every branch in a repository.
First, connect GitHub in Services. Then open Actions → + → GitHub and choose List Branches.
Alphabetical, protected or not. Protected Only narrows it to the branches a protection rule covers — the ones Delete a Branch will refuse.
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
True for only protected branches, false for only unprotected ones.
1–100. GitHub silently clamps anything larger.
100
Starts at 1. Bind this to a Shortcuts slot if you want to page from a Repeat loop rather than fetching several pages in one go.
1
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 |
|---|---|---|
name | string | The branch name. |
protected | boolean | True or false. |
commit | object | A group of named values. |
commit.sha | string | The latest commit on the branch. |
If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.
This action supports multiple pages of results. Open its Fetch setting to retrieve more pages when one page is not enough. Each page adds a service request.
Request: GET https://api.github.com/repos/{owner}/{repo}/branches
Action identifier: github.branches.list.v1
Permissions declared for this action: contents:read. The account’s own access rules also apply.
| Input | Request key | Location |
|---|---|---|
| Owner | owner | path |
| Repository | repo | path |
| Protected Only | protected | query |
| Page Size | per_page | query |
| Page | page | query |