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 GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Oct 14, 2025
- License
- MIT
Pinned Snippet
uses: open-turo/action-conditional-pr-comment@edd83970ff6337e47793946824a570a3d6777d87 # v1.1.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| workflow | ADD 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-detector | This 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. | yes | created by action-conditional-pr-comment |
| github-token | GitHub token that can add/update/delete comments. e.g. 'secrets.GITHUB_TOKEN' | yes | — |
| comment | This 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. | no | fixme |
| comment-author | The author of the comment upon addition. | no | open-turo-bot |
| edit-mode | The mode when updating a comment, "replace" or "append". | no | append |
Outputs
no outputs