Skip to content

feat(pr): build and check the title and body of a pull request - #3213

Merged
dan-petty merged 5 commits into
mainfrom
feat/3198-pull-request-form-check
Nov 2, 2026
Merged

dan-petty merged 5 commits into
mainfrom
feat/3198-pull-request-form-check

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The title and the body of a pull request were free text, and devops pr create checked neither. A summary over 60 characters, attribution lines before Closes, and the body x all reached GitHub, and a cut text ended with ....

One module, roadmap/pull_form.py, holds the rules: a Conventional Commit title with a declared scope and a summary of at most 60 characters, and a body that ends with Closes #<issue> and the Change: line, in at most 1,000 characters. It cuts no text and names every problem.

  • devops pr describe builds the title and the body from the issue and the change folder.
  • devops pr create runs the same check before any request, exits 1 on a problem, and still opens a draft.
  • A scope with no label is refused, and the old warning is deleted.

Workflow follow-up: the stage and implement jobs still cut text.

Closes #3198

Change: openspec/changes/archive/2026-11-02-3198-pull-request-form-check/


Generated by Claude Code

Add roadmap/pull_form.py with the rules of the title and the body, devops pr describe
to build both from the issue and the change folder, and a check in devops pr create
that refuses a pull request that breaks the form before it opens.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
The check kept a body that named `Closes #<issue>` in a code span out. Only the
comment of the template marks template text now; a name left in the Closes or
Change line is refused by the form of those lines.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
@dan-petty
dan-petty marked this pull request as ready for review November 2, 2026 15:48
@dan-petty
dan-petty merged commit 9bd6448 into main Nov 2, 2026
20 checks passed
@dan-petty
dan-petty deleted the feat/3198-pull-request-form-check branch November 2, 2026 15:50
dan-petty pushed a commit that referenced this pull request Nov 2, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.46.0](v0.45.0...v0.46.0)
(2026-11-02)


### Features

* **pr:** build and check the title and body of a pull request
([#3213](#3213))
([9bd6448](9bd6448))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 14, 2026
`devops pr create` refuses a title that breaks the form with
`title_problems`, and agent title failures fell from 41 to 2 after that
check (#3213). `devops pr edit --title` has no check, so an edit can set
a title that the `PR Title` check refuses (#4782).

Closes #4782

Change: `openspec/changes/archive/2026-11-14-4782-pr-edit-title/`
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.

feat(pr): build and check the title and body of a pull request

2 participants