ovsds/Create or Update Unique Comment
Create or update a comment on an issue or pull request. Composite of find-comment and create-or-update-comment actions.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Nov 26, 2024
- License
- MIT
Pinned Snippet
uses: ovsds/create-or-update-unique-comment-action@df30f5f96aa71679deb9eb697c98f39ee9e26651 # v1.1.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| token | GITHUB_TOKEN or a repo scoped PAT. | — | ${{ github.token }} |
| repository | The full name of the repository in which to create or update a comment. | — | ${{ github.repository }} |
| issue-number | The number of the issue or pull request in which to create a comment. | — | — |
| body | The comment body. Cannot be used in conjunction with `body-path`. | — | — |
| body-path | The path to a file containing the comment body. Cannot be used in conjunction with `body`. | — | — |
| edit-mode | The mode when updating a comment, "replace" or "append". | — | replace |
| append-separator | The separator to use when appending to an existing comment. (`newline`, `space`, `none`) | — | newline |
| reactions | A comma or newline separated list of reactions to add to the comment. | — | — |
| reactions-edit-mode | The mode when updating comment reactions, "replace" or "append". | — | replace |
| comment-author | The author of the comment to search for. | — | github-actions[bot] |
| unique-body-includes | A string to search for in the body of comments to determine uniqueness. | — | — |
| unique-body-regex | A regular expression to search for in the body of comments to determine uniqueness. | — | — |
| find-direction | Search direction, specified as `first` or `last` | — | first |
| find-nth | 0-indexed number, specifying which comment to return if multiple are found | — | 0 |
| delete | Delete the comment instead of updating if it is found or skip creation. | — | false |
Outputs
| name | description |
|---|---|
| comment-id | The id of the created comment |