johanwulf/Replace Comment

Find, delete, and recreate GitHub comments to keep them at the bottom of conversations

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Mar 31, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: johanwulf/replace-comment@73e5abab2457a7742d94f71355f878f25e950c71 # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
tokenGITHUB_TOKEN or a repo scoped PATno${{ github.token }}
repositoryThe full name of the repository containing the issue or pull requestno${{ github.repository }}
issue-numberThe number of the issue or pull request in which to find and replace the commentyes
body-includesA string to search for in the body of comments. Cannot be used with body-regexno
body-regexA regular expression to search for in the body of comments. Cannot be used with body-includesno
comment-authorThe GitHub user name of the comment authorno
directionSearch direction, specified as first or lastnofirst
nth0-indexed number, specifying which comment to update if multiple are foundno0
bodyThe comment body. Cannot be used with body-pathno
body-pathThe path to a file containing the comment body. Cannot be used with bodyno
reactionsA comma separated list of reactions to add to the comment (+1, -1, laugh, confused, heart, hooray, rocket, eyes)no
namedescription
comment-idThe ID of the created comment
comment-urlThe URL of the created comment
comment-bodyThe body of the created comment
found-comment-idThe ID of the comment that was found and deleted (if any)