š fix(owner-step): --check leaves out a cancelled run a later success replaced
What: owner-step required-checks --check refused Guard on #353, the first pull request merged after Guard landed, even though Guard passed there. Guard's cancel-in-progress had cancelled the run from the opened event when the edited run started (10:01:46Z cancelled, 10:02:01Z success, in separate check suites), and --check wanted every latest run to be success.
Now passedOnPull in src/owner-step.ts leaves out a cancelled run when a run from the same app started after it and concluded success. These still refuse:
- a cancelled run that nothing later replaced, or one with no start time;
- any other conclusion;
- a second app reporting the name.
Tests: #353's real order passes and adds Guard. A cancelled run after the success, a cancelled run alone, a cancelled run from another app, and a cancelled run with no start time each refuse. pnpm check passes.
Docs: README's Owner steps section, and a docs/decisions.md record (State #358 of P-58).
Needs: a release that carries this. Then Alok runs niyam owner-step required-checks veda-hq/niyam main --check "Guard".
š¤ Generated with Claude Code
Summary by cubic
Fixes owner-step required-checks --check refusing a check when a cancelled run was replaced by a later successful run from the same app, as cancel-in-progress workflows leave one when a pull request is edited or pushed again. Previously every latest run had to pass; now a cancelled run is set aside when a run from the same app started after it and concluded success.
- A cancelled run nothing later replaced, one with no start time, any other conclusion, or a second app still refuses.
- Adds a regression test and records the decision in
docs/decisions.md.