Skip to content

fix(ci): allow only declared scopes in pull request titles - #2846

Merged
dan-petty merged 6 commits into
mainfrom
fix/2800-scope-labels-for-git-and-agents
Oct 31, 2026
Merged

dan-petty merged 6 commits into
mainfrom
fix/2800-scope-labels-for-git-and-agents

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The Semantic PR title check now accepts only the scopes that .github/labels.yml declares, and main for the release pull request. Before, a scope was free text. A scope with no label gave a warning after the pull request was open, and the pull request got no scope label (#2800).

What changes:

  • .github/labels.yml declares 22 more scopes that the project uses twice or more in the history of origin/main and the open issues.
  • .github/workflows/pr-title.yml lists the same scopes in the scopes input of the title action. A test holds the two lists equal.
  • The implement job leaves out of its pull request title a scope that no label declares, so an issue with a one-off scope cannot make a delivery pull request that fails the check. The spec roadmap-implement-job records this.
  • CONTRIBUTING.md, docs/SDLC.md and the knowledge base say that a scope is a declared scope, and their title examples use declared scopes.

Closes #2800

Plan the change that holds the scope of a pull request title to the scopes
of .github/labels.yml, and declares the scopes that the project uses.
Declare the 15 scopes that titles use again and again. Set the scopes input
of the Semantic PR title check to the scopes of .github/labels.yml, and
hold the two lists equal with a test.
…id (#2800)

The scope count covers the whole history of origin/main and the open issues. The implement job leaves out a scope that no label declares. Two title examples and the title check rows in the docs name declared scopes.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Oct 31, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results and review notes.

Fail-to-pass run (devops ci fail-to-pass --base origin/main): 6 tests fail on base and pass on the branch. 100 tests pass on both. The failing tests are the title-check contract, the delivery title (4 tests) and the implement job title.

Full devops ci before the push: all checks pass except two tests. The test check ran 4 m 22 s (262 s). test_scan_report_skips_named_scanners fails only in the devcontainer, which has kube-linter on PATH (#2165). test_concurrent_slot_leasing_across_threads depends on thread timing (#2841) and passes when run alone.

Review findings, all fixed:

  • Scopes counted over the whole history: 22 scopes are now declared, including scan, contributing, sdlc, fail-to-pass and argocd. Counts in the proposal are corrected. argocd has 2 uses (1 commit and 1 open issue), not the count in the finding. The rule of two uses still declares it.
  • CONTRIBUTING.md title examples and the knowledge base example now use declared scopes (fix(ai), feat(service)).
  • The CONTRIBUTING.md check row and docs/SDLC.md now name the scope rule.
  • The implement job copied the issue scope into its pull request title. delivery_title now leaves out a scope that the labels file on the default branch does not declare. Two tests and a spec delta (roadmap-implement-job) cover it. Intake is not changed: 12 open issues already hold such a scope, and a refusal would lose issues.

@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 06:55
…-for-git-and-agents

# Conflicts:
#	src/devops_cli/roadmap/stage_change.py
@dan-petty
dan-petty merged commit f6aea38 into main Oct 31, 2026
29 of 30 checks passed
@dan-petty
dan-petty deleted the fix/2800-scope-labels-for-git-and-agents branch October 31, 2026 11:58
dan-petty pushed a commit that referenced this pull request Oct 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.26.1](v0.26.0...v0.26.1)
(2026-10-31)


### Bug Fixes

* **ci:** allow only declared scopes in pull request titles
([#2846](#2846))
([f6aea38](f6aea38)),
closes [#2800](#2800)
* **security:** remove pre-flight resolve paths for egress
([#2845](#2845))
([6ebc968](6ebc968)),
closes [#2437](#2437)

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): the scope git of a pull request title has no label

1 participant