Skip to content

Commit 512aefc

Browse files
author
jolestar
committed
ci: skip PR review events by default
1 parent 6ef8f74 commit 512aefc

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/holon-solve.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,18 @@ jobs:
370370
REVIEW_ID='0'
371371
fi
372372
373+
# Skip PR review events by default to avoid per-inline triggers unless explicitly requested.
374+
if { [ "$EVENT_NAME" = 'pull_request_review' ] || [ "$EVENT_NAME" = 'pull_request_review_comment' ]; } && \
375+
[ -z "$INPUT_MODE" ] && [ -z "$INPUT_SKILL" ] && [ "$INPUT_AUTO_REVIEW" != 'true' ]; then
376+
REASON='PR review events are ignored by default to avoid multiple inline triggers'
377+
echo "should_run=$SHOULD_RUN" >> "$GITHUB_OUTPUT"
378+
echo "reason=$REASON" >> "$GITHUB_OUTPUT"
379+
echo "goal_hint=$GOAL_HINT" >> "$GITHUB_OUTPUT"
380+
echo "is_pr=$IS_PR" >> "$GITHUB_OUTPUT"
381+
echo "issue_number=$ISSUE_NUMBER" >> "$GITHUB_OUTPUT"
382+
exit 0
383+
fi
384+
373385
# Determine if this issue number is a PR
374386
IS_PR='false'
375387
if [ -n "$EVENT_PR_NUMBER" ] || [ -n "$EVENT_ISSUE_PR_URL" ]; then
@@ -533,6 +545,8 @@ jobs:
533545
INPUT_REVIEW_BODY: ${{ inputs.review_body }}
534546
EVENT_REVIEW_BODY: ${{ github.event.review.body }}
535547
INPUT_MODE: ${{ inputs.mode }}
548+
INPUT_SKILL: ${{ inputs.skill }}
549+
INPUT_AUTO_REVIEW: ${{ inputs.auto_review }}
536550
INPUT_AUTO_REVIEW: ${{ inputs.auto_review }}
537551

538552
- name: Gate summary

.github/workflows/holon-trigger.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ on:
77
types: [labeled, assigned]
88
pull_request:
99
types: [labeled]
10-
pull_request_review:
11-
types: [submitted, edited]
12-
pull_request_review_comment:
13-
types: [created]
1410

1511
permissions:
1612
contents: write

0 commit comments

Comments
 (0)