Repository navigation
The run page reads one state for who must act - #537
Merged
Merged
Conversation
…uest on the repo-rule approval line
Contributor
|
💚 Post-merge health check passed: the deploy of
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The run page's "Needs a person" badge and its top line now come from one state, so the page can't say "Waiting on: a person" next to "Nothing needed from you". A person is named only when the platform types the wait as a person's (CoderHelm/coderhelm-platform#956). When the only wait left is the repository's required approval, the line reads exactly "Needs 1 approval from a person (repo rule) on #N", and #N links to the pull request.
Changes
waiting-line.ts: the line is built from the standing'sneeds_person. A server line that disagrees with it is replaced by the line built from the standing. New lines cover the repo-rule approval (with its count), CoderHelm's next fix round on its own review,building_plan, and a held draft whose reasons are CoderHelm's own.needs_person. A hold GitHub refused to mark ready is CoderHelm's to try again, never "Mark it ready on GitHub". New titles forbuilding_planandplan_needs_access. The finished-run fix-round text no longer offers to name what "only a person can do". The top line links its pull request number.api.tsandopenapi-fields.ts:RunDraftHold.needs_personandRunMergeStanding.approvals, from the platform's OpenAPI document at the platform commit.Verification
npm run lint,npm run typecheck,node scripts/openapi-fields.mjs --checke2e/audit-runs.spec.tsande2e/run-draft-hold.spec.ts, 46 passed. New tests cover:Merge order: this merges after CoderHelm/coderhelm-platform#956. If #956's head changes,
openapi-fields.tsis regenerated against main (node scripts/openapi-fields.mjs --ref main) once #956 is in.