A GitHub action to delete an issue or pull request comments.
NB: this action can only delete a comment by id at the moment. Feel free to open an issue or pull request if you would like to delete comments based on other criterias
- name: Delete comment
uses: detomarco/delete-comment@v1
with:
token: ${GITHUB_TOKEN}
repository: owner/repo
comment-id: 231314915| Name | Description | Default |
|---|---|---|
token |
GITHUB_TOKEN (issues: write, pull-requests: write) or a repo scoped PAT. |
GITHUB_TOKEN |
repository |
The full name of the repository in which to create or update a comment. | Current repository |
comment-id |
The id of the comment to update. |
| Name | Description |
|---|---|
done |
true when the comment is found and deleted, false otherwise |
I recommend this github action Find Comment