In this guide

Edit an Issue Comment

Replace the text of a comment you can edit.

Action referenceChange

What this action does #

First, connect GitHub in Services. Then open Actions → + → GitHub and choose Edit an Issue Comment.

What a run does

Running or testing this action changes something in your connected service.

More about this action

Takes the comment id, not the issue number. The new body replaces the old one entirely, and GitHub keeps the edit history, so this is visible rather than silent.

Inputs to fill in #

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.

Owner

RequiredText

User or organisation.

This input offers a picker for repository from your connected account. You can also supply its value directly.

Example value (replace with your own):
octocat

Repository

RequiredText

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.

Example value (replace with your own):
Hello-World

Comment ID

RequiredWhole number

From a comment's permalink, after #issuecomment-.

This input offers a picker for comment from your connected account. You can also supply its value directly.

Example value (replace with your own):
1042065321

Comment

RequiredText

Markdown. Replaces the whole comment.

Example value (replace with your own):
Fixed in 1.2.

What comes back #

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 fieldTypeMeaning
idintegerNeeded to edit or delete this comment.
bodystringMarkdown.
html_urlstringPermalink to the comment.
created_atstringISO 8601.
updated_atstringDiffers from created_at once edited.
author_associationstringOWNER, MEMBER, COLLABORATOR, CONTRIBUTOR or NONE.
userobjectWho wrote it.
user.loginstringUsername.
user.idintegerWhole-number value.
user.html_urlstringTheir profile page.
user.avatar_urlstringText value.
user.typestringUser, Organization or Bot.

Run it from Shortcuts #

  1. Give the action a recognizable name and tap Save.
  2. In Apple Shortcuts, add Shortcutify’s Execute Action and select the saved action.
  3. Supply any Param or File slots you bound in the inputs, then run the shortcut.

If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.

Advanced reference #

Request, permissions, and identifiers

Request: PATCH https://api.github.com/repos/{owner}/{repo}/issues/comments/{comment_id}

Action identifier: github.issues.comments.update.v1

Permissions declared for this action: issues:write. The account’s own access rules also apply.

InputRequest keyLocation
Ownerownerpath
Repositoryrepopath
Comment IDcomment_idpath
Commentbodybody

GitHub API reference