Skip to content

Infrastructure: a closed fix pull request says who closed it, and the fix is offered again - #412

Merged
nambok merged 1 commit into
mainfrom
fix/infra-closed-pr-offers-fix
Nov 14, 2026
Merged

nambok merged 1 commit into
mainfrom
fix/infra-closed-pr-offers-fix

Conversation

@nambok

@nambok nambok commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

On the Infrastructure tab, a finding whose fix pull request was closed without merging kept the link with the bare word "closed" and no button, so the fix could not be asked for again. This is the page's half of CoderHelm/coderhelm-platform#666, which releases the record and sends who closed the pull request and when. The page works with older servers: the new fields are optional.

Changes

  • The row says who closed the pull request and when: "PR Infrastructure: a closed fix pull request says who closed it, and the fix is offered again #412 closed by octo on Nov 13", and under it that a new one can be opened (for a member: that an admin can).
  • Open fix PR shows again for an open finding whose pull request was closed without merging. An open, merged or draft pull request gets no button, and neither does a finding that fell back to its runbook, as before.
  • closedWords accepts any pull request record with the closed fields, so the Dependencies and Infrastructure tabs word it the same way.

Verification

  • npm run lint, npm run typecheck, npm run check:openapi and npm run build pass in dashboard/.
  • e2e/infra-security.spec.ts and e2e/security.spec.ts in full, with the other infrastructure specs: 58 passed, 2 new (the closed pull request for an admin, including an older server with no closer and the open, merged, draft and runbook cases; and for a member).
  • Not verified against a live server: the page was run against the spec's mocked API only.

… fix is offered again

On the Infrastructure tab a finding kept the link to its pull request
after a person closed it, with the bare word "closed" and no button, so
the fix could not be asked for again.

- The row says who closed the pull request and when, and that a new one
  can be opened.
- "Open fix PR" shows again for an open finding whose pull request was
  closed without merging. An open, merged or draft pull request, and a
  finding that fell back to its runbook, get no button, as before.
- `closedWords` takes any pull request record with the closed fields,
  so both tabs word it the same way.
@nambok
nambok merged commit edaadf5 into main Nov 14, 2026
10 checks passed
@nambok
nambok deleted the fix/infra-closed-pr-offers-fix branch November 14, 2026 02:08
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