open-turo/Conditional PR comment

GitHub Action that supports instructing the author of a Pull Request (PR) how to resolve a given problem within the context of a PR. Conditionally adds a comment to the PR with resolution instructions, and once the condition is found to be resolved, allows the previously added comment, if one exists at that time, to be removed from the PR.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Oct 14, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: open-turo/action-conditional-pr-comment@edd83970ff6337e47793946824a570a3d6777d87 # v1.1.1

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

namedescriptionrequireddefault
workflowADD indicates the comment is to be added/updated to/within the PR, REMOVE indicates the comment is to be removed from the PR.yes
text-detectorThis is some unique verbatim subset of the comment that is to be used to determine if a comment has already been created against the PR that instructs the author how to resolve the given problem.yescreated by action-conditional-pr-comment
github-tokenGitHub token that can add/update/delete comments. e.g. 'secrets.GITHUB_TOKEN'yes
commentThis is the full text of the message to be placed within a comment of the given PR to instruct the author of the PR how to resolve a given problem. This value should be provided for all ADD workflows.nofixme
comment-authorThe author of the comment upon addition.noopen-turo-bot
edit-modeThe mode when updating a comment, "replace" or "append".noappend

no outputs