Skip to content

detomarco/delete-comments

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •