Repository navigation
fix: use both workflow_run and check_run triggers - #18
Conversation
Review — BLOCKHead SHA: Change class: CI/workflow — trigger configuration change to the auto-merge dispatcher. Security screen — T4 findingThe change to if: >
github.event_name == 'workflow_run' ||
github.event.check_run.check_suite.head_branch != github.event.repository.default_branchThe original guard prevented auto-merge from firing on the default branch ( Blocks
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Review — BLOCKHead SHA: Change class: CI/workflow — trigger configuration change to the auto-merge dispatcher. Security screen: PASS. The prior reviewer's T4 concern (unconditional Blocks
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — T1/T2 clean (no instruction redefinition, no manipulation). T3/T4: the diff modifies the merge gate but strengthens it — both Checklist: All applicable rules PASS or NA. Prior reviewer findings re-derived against the CURRENT head and dismissed as stale/superseded:
Independent verification: this PR modifies the auto-merge dispatcher — the very gate that lands it — so end-to-end green is unobservable pre-merge (self-gating). The mechanism is statically correct (branch guards on both event classes; Verdict: PASS openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
fix: add workflow_run trigger alongside check_run with branch guard
The change
The check_run trigger alone is not reliably firing the auto-merge
dispatcher. Adding workflow_run as a parallel trigger ensures the
engine fires on pr-validator completions. Both triggers now check
head_branch != default_branch before proceeding.
How tested
The previous dispatcher (with only check_run) was deployed on main
via PR #15 and tested on PRs #15 and #16 — neither triggered the
auto-merge via check_run. The workflow_run trigger has been proven
to work on this repo's prior engine (PR #14) and on the charly repo's
prior engine (PR #364). Validated by static review of the branch
guard condition for both event types.
Change class
CI/workflow — trigger configuration change, one CHANGELOG entry.
Project-rulebook compliance
the dispatcher; the workflow_run trigger provides a working fallback.
by unit test but is proven by prior PRs' live runs.
Attribution
Assisted-by: pi ollama-cloud deepseek-v4-flash:preview (analysed on a live system)