chore: Tighten /format command trigger conditions (#201)

Use exact match and add author_association check for the /format
comment command workflow.
This commit is contained in:
Erez Rokah
2026-04-03 23:02:11 +01:00
committed by GitHub
parent 12e0aa71bc
commit 85b3d1aacd

View File

@@ -9,7 +9,12 @@ jobs:
name: Format name: Format
if: >- if: >-
github.event.issue.pull_request && 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 runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write