aki77 / delete-pr-comments-action

Delete PR review comments by any conditions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Delete PR review comments

Delete PR review comments by any conditions.

Inputs

  • token - The GITHUB_TOKEN secret.

  • noReply: Delete only comments with no replies. (default: false)

  • bodyContains - String contained in the comment to be deleted. (default: ``)

    You can specify multiple strings by putting each string on its own line:

    bodyContains: |-
      [eslint]
      [reviewdog]

Example

name: Tests
on:
  pull_request:

jobs:
  build:
    steps:
      - uses: aki77/delete-pr-comments-action@v2
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          bodyContains: |-
            [eslint]
            [reviewdog]
          noReply: 'true'
      - uses: reviewdog/action-eslint@v1

About

Delete PR review comments by any conditions

License:MIT License


Languages

Language:TypeScript 93.7%Language:JavaScript 6.3%