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:
7
.github/workflows/format-command.yml
vendored
7
.github/workflows/format-command.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user