actions-marketplace-validations/Find, create or update comment
Tries to find a comment and updates it if found, if not creates it.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | GITHUB_TOKEN or a repo scoped PAT. | yes | ${{ github.token }} |
| repository | The full name of the repository containing the issue or pull request where to find, create or update the comment. | yes | ${{ github.repository }} |
| issue-number | The number of the issue or pull request in which to find, create or update the comment. | yes | — |
| comment-author | The GitHub user name of the comment author. | no | "" |
| body-includes | A string to search for in the body of comments. Cannot be used in conjunction with body-regex. | no | "" |
| body-regex | A regular expression to search for in the body of comments. Cannot be used in conjunction with body-includes. | no | "" |
| direction | Search direction, specified as first or last. | no | first |
| nth | 0-indexed number, specifying which comment to return if multiple are found. | no | 0 |
| body | The comment body. Cannot be used in conjunction with body-path. | no | "" |
| body-path | The path to a file containing the comment body. Cannot be used in conjunction with body. | no | "" |
| edit-mode | The mode when updating a comment: replace or append. | no | append |
| reactions | A comma separated list of reactions to add to the comment (+1, -1, laugh, confused, heart, hooray, rocket, eyes). | no | "" |
| reactions-edit-mode | The mode when updating comment reactions, replace or append. | no | append |
Outputs
no outputs