Skip to content

Delete comments

Actions
Delete issue or pull request comment
1.1.0
Latest
Star (3)

Delete Comments

CodeQL

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

Usage

Delete a comment to an issue or pull request

      - name: Delete comment
        uses: detomarco/delete-comment@v1
        with:
          token: ${GITHUB_TOKEN}
          repository: owner/repo
          comment-id: 231314915

Action inputs

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.

Outputs

Name Description
done true when the comment is found and deleted, false otherwise

Where to find the id of a comment

I recommend this github action Find Comment

License

MIT

Delete comments is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Delete issue or pull request comment
1.1.0
Latest

Delete comments is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.