fail-on-regression as a required check
By default the Action only comments — it never blocks a merge. To make a regression actually stop a PR, you need two things: opt into the gate, and make the check required on your protected branch.
1. Opt into the gate
Section titled “1. Opt into the gate”Set fail-on-regression: 'true'. Now the Action exits non-zero (the check goes red) whenever a
passed → failed regression is detected:
- uses: plune-ai/eval-action@v1 with: config: plune.yaml fail-on-regression: 'true'A red check alone doesn’t prevent a merge — a maintainer can still merge a failing PR — until you make it required.
2. Make the check required
Section titled “2. Make the check required”- Go to Settings → Branches → Branch protection rules and add (or edit) a rule for
main. - Enable Require status checks to pass before merging.
- Search for the Plune job’s check name — it’s the job id from your workflow (e.g.
plune) — and select it. - Save. Now a regression-red check blocks the merge button.
Next steps
Section titled “Next steps” Fork pull requests How the gate and comment behave on PRs from forks — safely.