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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Nov 26, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: ovsds/create-or-update-unique-comment-action@df30f5f96aa71679deb9eb697c98f39ee9e26651 # v1.1.0

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

namedescriptionrequireddefault
tokenGITHUB_TOKEN or a repo scoped PAT.${{ github.token }}
repositoryThe full name of the repository in which to create or update a comment.${{ github.repository }}
issue-numberThe number of the issue or pull request in which to create a comment.
bodyThe comment body. Cannot be used in conjunction with `body-path`.
body-pathThe path to a file containing the comment body. Cannot be used in conjunction with `body`.
edit-modeThe mode when updating a comment, "replace" or "append".replace
append-separatorThe separator to use when appending to an existing comment. (`newline`, `space`, `none`)newline
reactionsA comma or newline separated list of reactions to add to the comment.
reactions-edit-modeThe mode when updating comment reactions, "replace" or "append".replace
comment-authorThe author of the comment to search for.github-actions[bot]
unique-body-includesA string to search for in the body of comments to determine uniqueness.
unique-body-regexA regular expression to search for in the body of comments to determine uniqueness.
find-directionSearch direction, specified as `first` or `last`first
find-nth0-indexed number, specifying which comment to return if multiple are found0
deleteDelete the comment instead of updating if it is found or skip creation.false
namedescription
comment-idThe id of the created comment