Owner
RequiredTextUser or organisation.
This input offers a picker for repository from your connected account. You can also supply its value directly.
octocat
One issue by number, with its labels, assignees and state.
First, connect GitHub in Services. Then open Actions → + → GitHub and choose Get an Issue.
The number is the one shown in the interface — issue #42, not the internal id. Passing the id instead is the usual cause of a 404 here.
A pull request number works too, and returns the issue half of it: title, body, labels, comments. For head and base branches or mergeability, use Get a Pull Request.
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, not the internal id.
This input offers a picker for issue from your connected account. You can also supply its value directly.
42
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 issue number shown in the UI. |
id | integer | Internal id. Not the number. |
title | string | Text value. |
state | string | open or closed. |
state_reason | string | completed, not_planned, reopened or duplicate. |
body | string | The issue text, as Markdown. |
html_url | string | The issue page. |
comments | integer | How many comments it has. |
locked | boolean | True or false. |
created_at | string | ISO 8601. |
updated_at | string | Text value. |
closed_at | string | Null while open. |
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 | Everyone assigned. |
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. |
milestone | object | Null when unset. |
milestone.number | integer | Whole-number value. |
milestone.title | string | Text value. |
milestone.due_on | string | Text value. |
labels | array | Each entry is either an object or a plain string. |
labels[].name | string | Text value. |
labels[].color | string | Six hex digits, no leading #. |
labels[].description | string | Text value. |
pull_request | object | Present only when the issue is a pull request. |
pull_request.html_url | string | Text value. |
pull_request.merged_at | string | Null unless it was merged. |
If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.
Request: GET https://api.github.com/repos/{owner}/{repo}/issues/{issue_number}
Action identifier: github.issues.get.v1
Permissions declared for this action: issues:read. The account’s own access rules also apply.
| Input | Request key | Location |
|---|---|---|
| Owner | owner | path |
| Repository | repo | path |
| Issue Number | issue_number | path |