From 91dfeb32092ee3c382f6ae47b901ee185888b034 Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Thu, 11 Jul 2024 10:49:33 +0200 Subject: [PATCH] fixed commenting bot not working Fix the mentioned issue: https://github.com/paritytech/command-bot/issues/113#issuecomment-2222277552 --- .github/workflows/command-inform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/command-inform.yml b/.github/workflows/command-inform.yml index 1c7323c998dfe..97aa69dd5f1f1 100644 --- a/.github/workflows/command-inform.yml +++ b/.github/workflows/command-inform.yml @@ -7,9 +7,9 @@ on: jobs: comment: runs-on: ubuntu-latest + if: contains(github.event.comment.html_url, '/pull/') && startsWith(github.event.comment.body, 'bot ') steps: - name: Inform that the new command exist - if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, 'bot ') }} run: gh pr comment ${{ github.event.issue.number }} --body 'We are migrating this bot to be a GitHub Action

Please, see the documentation on how to use it' env: GH_TOKEN: ${{ github.token }}