Repository navigation
Description
Split from #3215.
The follow-up of PR #3213 makes devops pr check-readiness call body_problems and report each problem. This part waits on #2585, which adds the command to this repository. The rest of #3215 changes the stage and implement jobs and the plan form. Acceptance criteria: devops pr check-readiness calls body_problems on the pull request body. It reports each problem that body_problems returns. It exits non-zero when it reports at least one problem. A test with a body that has no Closes # line asserts the missing-Closes report and the non-zero exit.
Proposed design
Problem statement
devops pr check-readiness fetches a pull request body but does not run the body form rules. It does not report a missing Closes # line or other body problems. This change makes the command call body_problems, print each problem and exit non-zero when it finds one.
Acceptance criteria
Requirement: Readiness body check
devops pr check-readiness SHALL call body_problems on the pull request body.
Scenario: Body with a missing closing reference
- WHEN the pull request body has no
Closes #line - THEN the command reports the missing-
Closesproblem frombody_problems.
Requirement: Every body problem
The command SHALL report every problem that body_problems returns.
Scenario: Body with two problems
- WHEN the pull request body has no
Closes #line and noChange:line - THEN the command output contains both the missing-
Closesmessage and the missing-Changemessage.
Requirement: Non-zero exit on a body problem
The command SHALL exit with a non-zero status when body_problems returns at least one problem.
Scenario: Non-zero exit for a missing closing reference
- WHEN the pull request body has no
Closes #line - THEN the command exits with a non-zero status.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers this internal CLI readiness check. The change reuses the existing body_problems function in src/devops_cli/roadmap/pull_form.py. The written cost is small: about 2,000 tokens and under one hour to add the call, print each message and add one test.
Key questions
- Does
body_problemsexist, and doescheck-readinessalready fetch the pull request body?: Yes.body_problemsis insrc/devops_cli/roadmap/pull_form.py.src/devops_cli/commands/pr.pycalls it, andcheck-readinessalready fetches the body. [sources: src/devops_cli/roadmap/pull_form.py, src/devops_cli/commands/pr.py] - Should the change reuse
body_problemsor build a new body parser?: Reusebody_problems. The module already returns one message for each problem, and the command already has the body. (best practice) [sources: src/devops_cli/roadmap/pull_form.py, openspec/changes/archive/2026-11-02-3198-pull-request-form-check/design.md]- Chosen: Reuse
body_problems. The function exists, reads no file and makes no request. - Rejected: Build a new body parser. It duplicates tested rules and adds code to keep.
- Rejected: Use an external body linter. No external tool covers this repository's pull request form rules.
- Chosen: Reuse
- Should the command report all body problems and fail on any problem?: Yes. Report every message that
body_problemsreturns and exit non-zero when the list is not empty. (best practice) [sources: src/devops_cli/roadmap/pull_form.py, openspec/changes/archive/2026-11-02-3198-pull-request-form-check/design.md]- Chosen: Report all problems and fail on any. It shows every rule that the body breaks in one run.
- Rejected: Warn only. It lets a pull request pass readiness with a broken body form.
- Rejected: Report the first problem only. It hides later problems and needs more runs to find them.
Fit
Fits in one pull request.
Suspected block
None.
Activity
devops-cli-service commentedon Nov 2, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(pr)scope of the title gives the scope.Useful readiness check but not blocking; it depends on #2585 and is one part of a larger split.Catches missing Closes # lines before merge, improving traceability on main.Calls an existing command, reports its output, exits non-zero, and adds one test.Both add body validation to check-readiness, but #2585 creates the body_problems command and a length warning, while the candidate calls it for the missing-Closes check and asserts non-zero exit.devops-cli-service commentedon Nov 5, 2026
Refine cannot set this item to Ready at f481be8. A bot opened the item, so a review of the issue and of the proposal must approve it first. The review found the defects below. A person edits the body to answer them. The next refine round looks at the item again only after a body edit.
false_premiseat key_questions, first answer: The plan sayscheck-readinessalready exists andpr.pyalready callsbody_problems. The issue says feat(pr): check-readiness warns when a pull request body passes 1,000 characters #2585 adds the command, and the plan's own problem statement says the command does not run the body rules. The input does not support the claim. Evidence: "src/devops_cli/commands/pr.pycalls it, andcheck-readinessalready fetches the body."chore(main): release 0.73.0 (#3842)
devops-cli-service commentedon Nov 6, 2026
Released in v0.73.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.73.0
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 22:09 UTC