Skip to content

Accept the check-contract do-not-merge line in pr-verify before ci-workflows renames it #16188

Description

@kyle-sexton

What

.github/scripts/pr-verify/resolve-pr.mjs matches one exact error line from the ci-workflows check-contract composite. melodic-software/ci-workflows#1094 changed that line's prefix from pr-contract: to check-contract:, to match the composite's name.

Owner decision (2026-11-14, in session)

The rename is a clean cut. The owner's words: "I don't want any old references in there. Don't even like migrations or anything like that." and "don't write tests that compare the old name to the new name."

So the reader matches the new line only. There is no second accepted line and no test of the old one. This replaces this issue's first draft, which asked for both lines to be accepted.

Done when

  • DO_NOT_MERGE_LINE is the check-contract: line.
  • The same pull request re-pins check-contract in .github/workflows/pr-require-checks.yml to the commit ci-workflows#1094 merged as, so the composite this repository runs prints the line the reader matches.
  • No pr-contract text is left under .github/scripts/.

Accepted cost

A run logs the line of its own commit's workflow file. A ci-status run that started before the merge, or a re-run of one, still logs the pr-contract: line. On such a run heldOnly returns false and pr-verify skips with not-a-passing-run, so a pull request held only by do-not-merge gets no verifier verdict until a fresh ci-status run. This fails closed: nothing merges that should not.

Notes

Activity

  1. added
    needs-triage
    on Nov 14, 2026
  2. added theissue type on Nov 14, 2026
  3. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: make heldOnly in resolve-pr.mjs accept both the old pr-contract: and the new check-contract: do-not-merge lines, the way HOLD_STEP and OLD_HOLD_STEP are already handled. Tests should cover both lines and the existing rejections for each. The scope and done-when are exact, so nothing is missing from the issue.

    The copy of this reader in pr-pipeline-sandbox needs the same change in its own repository. That is outside this checkout. No duplicate or already-merged fix found among the listed issues and pull requests.

    Automated triage. A maintainer reviews it.

  4. removed
    needs-triage
    on Nov 14, 2026
  5. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its body was edited after it was deferred, so the admission it was deferred from judged an older body. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  6. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Make heldOnly in resolve-pr.mjs count both the old pr-contract: and the new check-contract: do-not-merge lines as the label line, with tests for both.

    Acceptance criteria

    • resolve-pr.mjs keeps the exported DO_NOT_MERGE_LINE with the pr-contract: text and adds a second line with the check-contract: prefix and the same 'do-not-merge' wording, grouped in a list the way HOLD_STEPS is
    • heldOnly's label filter (resolve-pr.mjs:385) matches a line equal to either of the two lines
    • heldOnly still requires exactly one label line when CONTRACT_STEP failed and none otherwise, so one old line plus one new line counts as two and is rejected
    • The comment above heldOnly and the comment at resolve-pr.mjs:306-310 name both lines and say the old one stays until no consumer pins a release that prints it
    • resolve-pr.test.mjs accepts a run that failed only on CONTRACT_STEP with the new line, alone and beside a person-lifted hold, as ok
    • resolve-pr.test.mjs runs each rejection in the contract-failure test (title failure beside the label, label line twice, label text changed, label line while the contract step passed, both steps with one exit, hold step with only the label, contract step cancelled) for both lines and each gives not-a-passing-run
    • A test covers the old and new lines together in one log and expects not-a-passing-run
    • A title-failure case is tested with the check-contract: prefix beside the label line and is rejected
    • node --test on .github/scripts/pr-verify/resolve-pr.test.mjs passes
    • No other file changes except comments or docs that quote the old line

    External state: none

    Dependencies

    • melodic-software/ci-workflows#​1093 renames the prefix and must wait for this change to land first (step 1 of its recorded order)
    • The copy of this reader in melodic-software/pr-pipeline-sandbox needs the same change in its own repository; it is outside this checkout

    Sources read

    • .github/scripts/pr-verify/resolve-pr.mjs:302-310: HOLD_STEP, OLD_HOLD_STEP, HOLD_STEPS list and the single exported DO_NOT_MERGE_LINE
    • .github/scripts/pr-verify/resolve-pr.mjs:380-395: heldOnly filters label lines with line === DO_NOT_MERGE_LINE and requires label count 1 when CONTRACT_STEP failed
    • .github/scripts/pr-verify/resolve-pr.test.mjs:822-854: tests accept and reject cases use only DO_NOT_MERGE_LINE, with a pr-contract: TITLE line
    • .github/scripts/pr-verify/resolve-pr.test.mjs:829-836: the existing old-hold-step test shows the dual-name pattern

    Automated refinement by the lanes App. Intake triages the issue again with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    confirmed

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions