From 85b3d1aacd3774a65de5f6a7426a8c748db898ed Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Fri, 3 Apr 2026 23:02:11 +0100 Subject: [PATCH] chore: Tighten /format command trigger conditions (#201) Use exact match and add author_association check for the /format comment command workflow. --- .github/workflows/format-command.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/format-command.yml b/.github/workflows/format-command.yml index f417981..4cbfdb9 100644 --- a/.github/workflows/format-command.yml +++ b/.github/workflows/format-command.yml @@ -9,7 +9,12 @@ jobs: name: Format if: >- github.event.issue.pull_request && - contains(github.event.comment.body, '/format') + github.event.comment.body == '/format' && + ( + github.event.comment.author_association == 'MEMBER' || + github.event.comment.author_association == 'OWNER' || + github.event.comment.author_association == 'COLLABORATOR' + ) runs-on: ubuntu-latest permissions: contents: write