diff --git a/.github/workflows/retest.yaml b/.github/workflows/retest.yaml index 43a6dab06341..47cb30ff68a1 100644 --- a/.github/workflows/retest.yaml +++ b/.github/workflows/retest.yaml @@ -1,14 +1,15 @@ name: Detect and Trigger Retest on: issue_comment: - types: [created, edited] + types: [created] permissions: contents: read jobs: retest: - if: github.event.comment.author_association == 'MEMBER' && github.event.comment.body == '/retest' + # PR comments where a Member types "/retest" exactly + if: github.event.issue.pull_request && github.event.comment.author_association == 'MEMBER' && github.event.comment.body == '/retest' permissions: actions: write # for re-running failed jobs: https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#re-run-a-job-from-a-workflow-run runs-on: ubuntu-latest