Skip to content

Run page: a covered run shows what it carried and offers to close the superseded pull request - #326

Merged
nambok merged 1 commit into
mainfrom
fix/covered-run-continues-own-pr
Nov 6, 2026
Merged

nambok merged 1 commit into
mainfrom
fix/covered-run-continues-own-pr

Conversation

@nambok

@nambok nambok commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

The run page for a run covered by another open pull request now shows what the run did about it, and Retry is no longer the only button. When the covering pull request is Coderhelm's own, the run continues in it. The page shows what was carried over and where, what is still open for the ticket, and that the ticket's earlier pull request is superseded, with a "Close #N" button that works only on a click. When a person's pull request covers the ticket, the page links it, says so plainly, and offers nothing that would change it.

Changes

  • RunCoveredBy gains own, outcome, carried, open_items, superseded and note. These match the platform's OpenAPI document, and openapi-fields.ts is regenerated from it.
  • api.closeSupersededPr: POST /api/runs/:id/close-superseded.
  • Run page, covered outcome:
    • The title says what happened: "Continued in #N", "#N already has everything this ticket asks for", "Covered by X's pull request #N", or "Already being fixed in #N" for older runs.
    • The page shows carried commits and files, the open items, and the superseded pull request's state.
    • "Open #N" is always shown. "Close #P" is shown only for an own covering pull request that carries the change and asks for confirmation first. Retry is offered only when the work isn't in the covering pull request.

Verification

  • npm run lint, npm run typecheck, npm run check:openapi, npm run build.
  • Playwright e2e/stop-rules.spec.ts (with the new tests) and e2e/close-runs.spec.ts:
    • A continued run shows what was carried, the open items and the superseded pull request, has no Retry, and closes the earlier pull request only after the click and the confirm.
    • A complete one says so and shows the earlier pull request as closed.
    • A person's covering pull request is linked, with no Close or Continue and with Retry.
    • The existing covered-run tests still pass.

…o close the superseded pull request

A run covered by Coderhelm's own pull request continued in it: the page shows
the commits and files carried over, what is still open for the ticket, and the
ticket's earlier pull request as superseded with a Close button that acts only
on a click. A person's covering pull request is linked and never offered to
change. Retry is offered only when the work isn't in the covering pull request.
@nambok
nambok merged commit 5067461 into main Nov 6, 2026
10 checks passed
@nambok
nambok deleted the fix/covered-run-continues-own-pr branch November 6, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant