diff --git a/.github/workflows/pull-request-stats.yml b/.github/workflows/pull-request-stats.yml index f08b65b9..a2ad47bb 100644 --- a/.github/workflows/pull-request-stats.yml +++ b/.github/workflows/pull-request-stats.yml @@ -1,6 +1,8 @@ on: pull_request: types: [opened, synchronize] + issue_comment: + types: [created] name: Generate Pull Request Stats @@ -9,7 +11,16 @@ jobs: name: PR Stats runs-on: ubuntu-latest steps: - - uses: typeofweb/next-stats-action@master + - uses: Khan/pull-request-comment-trigger@master + id: check + with: + reaction: eyes + trigger: '@TypeOfWebBot stats' + prefix_only: true + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - if: steps.check.outputs.triggered == 'true' + uses: typeofweb/next-stats-action@master env: PR_STATS_COMMENT_TOKEN: ${{secrets.PR_STATS_COMMENT_TOKEN}} HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}}