Skip to content
play

GitHub Action

Delete Comment

master Latest version

Delete Comment

play

Delete Comment

delete comments from issue/pr by username

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Delete Comment

uses: izhangzhihao/delete-comment@master

Learn more about this action in izhangzhihao/delete-comment

Choose a version

typescript-action status

Github Action to delete comments by username

Delete-comment Action will delete comments from issues/prs by username. You can either specify an issue number on which to remove comments or let the action remove all comments across the repository.

Sample Manually Triggered Workflow

name: delete comments from open-collective-bot
on:
  workflow_dispatch:
jobs:
  delete-comments:
    runs-on: ubuntu-latest
    steps:
      - uses: izhangzhihao/delete-comment@master
        with: 
          github_token: ${{ secrets.GITHUB_TOKEN }}
          delete_user_name: open-collective-bot[bot]
          issue_number: ${{ github.event.number }}  # remove comments from the current PR