repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

Require product CI before merge (#146)

83c0b2034e0cecc1b2d0a97bb392932ca7e84397

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

## What forced this
Auto-merge can currently merge a PR after the label gate passes even
when the product CI check fails.

## The call
Make the stable `check` context a required peer of `merge-gate`.

## What we deliberately didn't do
Auto-merge stays enabled because complete required checks, not manual
merging, are the durable safety boundary.

## Evidence
The live ruleset currently requires one context (`merge-gate`), while
`ci.yml` already publishes `check` on every PR.

## Surface touched
`.github/rulesets/main.json` and its ADW contract check.

## If this ages badly
Update both the stable CI job name and ruleset context together if the
check contract changes.

Closes #17.

Changed files (2)

+4 / −1 text lines

Diff layout

.github/adw/workflow-contract.test.sh

Modified

+2 / −0 text lines

3131 'merge gate binds labels to evidence for the current head'
3232require .github/workflows/adw-gate.yml 'VERDICT: reviewed' \
3333 'merge gate binds an approval label to an approval comment'
34require .github/rulesets/main.json '"context": "check"' \
35 'main requires product CI beside the merge gate'
3436require .github/workflows/adw-review.yml 'pulls/\$PR/files' \
3537 'Codex fallback refuses merge labels for binary or incomplete files'
3638require .github/workflows/adw-review.yml 'previous_filename' \

.github/rulesets/main.json

Modified

+2 / −1 text lines

3737 "parameters": {
3838 "strict_required_status_checks_policy": false,
3939 "required_status_checks": [
40 { "context": "merge-gate" }
40 { "context": "merge-gate" },
41 { "context": "check" }
4142 ]
4243 }
4344 }