File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
1511permissions :
1612 contents : write
You can’t perform that action at this time.
0 commit comments