ci: only maintainer can trigger

This commit is contained in:
Aiden Cline 2025-12-04 01:07:04 -06:00
parent bcf740f98a
commit 088ebb967f

View file

@ -1,16 +1,12 @@
name: Guidelines Check
on:
pull_request_target:
types: [opened, ready_for_review]
issue_comment:
types: [created]
jobs:
check-guidelines:
if: |
(github.event_name == 'pull_request_target' &&
github.event.pull_request.draft == false) ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/review'))