Gist ID
RequiredTextThe hash at the end of the gist's URL.
This input offers a picker for gist from your connected account. You can also supply its value directly.
aa5a315d61ae9438b18d
Replace the text of a comment you left.
First, connect GitHub in Services. Then open Actions → + → GitHub and choose Edit a Gist Comment.
Running or testing this action changes something in your connected service.
Needs both ids: the gist's, and the comment's. The new body replaces the old one entirely.
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.
The hash at the end of the gist's URL.
This input offers a picker for gist from your connected account. You can also supply its value directly.
aa5a315d61ae9438b18d
From a comment's permalink on the gist, after #gistcomment-.
This input offers a picker for comment from your connected account. You can also supply its value directly.
5212400
Markdown. Replaces the whole comment.
Corrected.
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 |
|---|---|---|
id | integer | Needed to edit or delete this comment. |
body | string | Markdown. |
html_url | string | Permalink to the comment. |
created_at | string | ISO 8601. |
updated_at | string | Differs from created_at once edited. |
author_association | string | OWNER, MEMBER, COLLABORATOR, CONTRIBUTOR or NONE. |
user | object | Who wrote 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. |
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/gists/{gist_id}/comments/{comment_id}
Action identifier: github.gists.comments.update.v1
Permissions declared for this action: gists:write. The account’s own access rules also apply.
| Input | Request key | Location |
|---|---|---|
| Gist ID | gist_id | path |
| Comment ID | comment_id | path |
| Comment | body | body |