Repository navigation
Description
Problem
devops pr create and devops pr edit refuse a title with !, and devops pr create refuses a body with the words BREAKING CHANGE, in every repository (title_problems, body_problems and plan_body_problems of src/devops_cli/roadmap/pull_form.py). The message says that before 1.0.0 nothing is a breaking change. This is a rule of devops-cli.
dan-petty/github-workflows has another rule. Its AGENTS.md rule 10 and its README.md ("Releases") call a change of a workflow input that a caller must follow a breaking change, and its release-please config sets bump-minor-pre-major.
Evidence of 2026-11-30: dan-petty/github-workflows#40 adds a required workflow input. A dry run of devops pr create refused the title with !, so the pull request has none, and the changelog of v0.4.0 gets no breaking-changes section.
Change
Apply the rule only to a repository that asks for it, so that each other repository can write ! as its own release rules say.
Existing tool considered
release-please already gives a breaking change before 1.0.0 a minor version with bump-minor-pre-major. The change removes or limits a check and builds no new tool.
Done when
devops pr createanddevops pr editaccept!for dan-petty/github-workflows.- devops-cli keeps its own rule, if the owner still wants it.
Source
Source: dan-petty/github-workflows#40
Proposed design
Problem statement
devops-cli refuses ! in pull request titles and BREAKING CHANGE in pull request bodies in every repository. Some repositories, such as dan-petty/github-workflows, call a workflow input change breaking and set bump-minor-pre-major. The change applies the refusal only when a repository asks for it. It keeps the refusal for devops-cli.
Acceptance criteria
Requirement: Allow breaking title when the repository permits it
The title form SHALL accept a Conventional Commit title with ! when refuse_breaking is false.
Scenario: Breaking title is accepted
- WHEN A test calls
title_problems('feat!: add required input', refuse_breaking=False). - THEN The test asserts that the returned list is empty.
Requirement: Refuse breaking title when the repository asks
The title form MUST refuse a Conventional Commit title with ! when refuse_breaking is true.
Scenario: Breaking title is refused
- WHEN A test calls
title_problems('feat!: add required input', refuse_breaking=True). - THEN The test asserts that the returned list contains the
form_title_breakingmessage.
Requirement: Allow breaking text in a body when the repository permits it
The body forms SHALL accept the text BREAKING CHANGE when refuse_breaking is false.
Scenario: Breaking body text is accepted
- WHEN A test calls
body_problems(body, refuse_breaking=False)andplan_body_problems(body, 7921, refuse_breaking=False)on a valid body that containsBREAKING CHANGE. - THEN The test asserts that neither returned list contains the
form_body_breakingmessage.
Requirement: Refuse breaking text in a body when the repository asks
The body forms MUST refuse the text BREAKING CHANGE when refuse_breaking is true.
Scenario: Breaking body text is refused
- WHEN A test calls
body_problems(body, refuse_breaking=True)andplan_body_problems(body, 7921, refuse_breaking=True)on a valid body that containsBREAKING CHANGE. - THEN The test asserts that each returned list contains the
form_body_breakingmessage.
Requirement: Default repository accepts a breaking title
The pr create command SHALL accept a title with ! when the project profile does not set pull_request.refuse_breaking.
Scenario: Repository without the refusal fact accepts a breaking title
- WHEN A test runs
uv run devops pr create --dry-runin a temporary repository with nopull_request.refuse_breakingvalue and gives the titlefeat!: add required input. - THEN The command exits 0 and prints no
form_title_breakingmessage.
Requirement: Default repository accepts BREAKING CHANGE in a body
The pr create command SHALL accept a body with BREAKING CHANGE when the project profile does not set pull_request.refuse_breaking.
Scenario: Repository without the refusal fact accepts a breaking body
- WHEN A test runs
uv run devops pr create --dry-runin a temporary repository with nopull_request.refuse_breakingvalue and gives a valid body that containsBREAKING CHANGE. - THEN The command exits 0 and prints no
form_body_breakingmessage.
Requirement: devops-cli keeps the breaking-change refusal
The pr create command MUST refuse a title with ! in the devops-cli repository.
Scenario: devops-cli refuses a breaking title
- WHEN A test runs
uv run devops pr create --dry-runin the devops-cli repository and gives the titlefeat!: add required input. - THEN The command exits non-zero and prints the
form_title_breakingmessage.
Requirement: Edit command uses the repository rule
The pr edit command MUST pass the pull_request.refuse_breaking fact to the title and body checks.
Scenario: Edit accepts a breaking title when the repository permits it
- WHEN A test calls the
pr edittitle validation path withrefuse_breaking=Falseand the titlefeat!: add required input. - THEN The validation returns no
form_title_breakingmessage.
Existing Tool Considered
No alternatives check has run. release-please covers the release-version part: bump-minor-pre-major gives a breaking change before 1.0.0 a minor version. It does not validate pull request titles or bodies. The change removes a check and adds one project profile fact. It builds no new tool and adds no build cost.
Key questions
- How does a repository ask for the pre-1.0.0 breaking-change rule?: The repository sets
pull_request.refuse_breaking = truein its.devops/project.toml. The default is false, so other repositories accept!andBREAKING CHANGE. devops-cli sets the value true to keep its rule. (best practice) [sources: CONTEXT.md, README.md, src/devops_cli/roadmap/pull_form.py:205, src/devops_cli/roadmap/pull_form.py:311, src/devops_cli/roadmap/pull_form.py:342]- Chosen: Project profile fact. The project profile holds repository facts and records each value's source.
- Rejected: Hard-code repository names. A name list needs a code change for each repository.
- Rejected: Read release-please config in each command. It couples the check to one release tool and repeats profile logic.
- Rejected: Add a command-line flag. A flag does not make the repository ask for the rule.
- Which default does the title and body form use?: The form allows breaking marks by default. The
refuse_breakingparameter defaults to false. A caller sets it to true only from the project profile fact. (best practice) [sources: src/devops_cli/roadmap/pull_form.py:205, src/devops_cli/roadmap/pull_form.py:311, src/devops_cli/roadmap/pull_form.py:342]- Chosen: Default allow. The issue applies the refusal only to a repository that asks for it.
- Rejected: Default refuse. It keeps the rule in every repository and contradicts the issue.
- Does devops-cli keep its own breaking-change refusal?: Yes. The devops-cli project profile sets
pull_request.refuse_breaking = true. README.md states the pre-1.0.0 policy. (best practice) [sources: README.md, CONTEXT.md]- Chosen: Keep the refusal. README.md states that devops-cli keeps no backwards compatibility before 1.0.0.
- Rejected: Remove the refusal. It contradicts the documented pre-1.0.0 policy.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 30, 2026
Both limit pull_form checks in devops pr create, but #3314 limits body form for plan PRs while this limits the ! and BREAKING CHANGE rule per repository.devops-cli-service commentedon Dec 1, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.