Skip to content

feat(ci): pass static title scopes from the answers - #40

Merged
dan-petty merged 4 commits into
mainfrom
feat/7-static-title-scopes
Nov 30, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/7-static-title-scopes

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

pr-title.yml takes the required input scopes and checks out no file. The scope script goes. The job asks for pull-requests: read only. It checks the title only, so a caller sets squash_merge_commit_title to PR_TITLE. The template caller writes scopes from the answer scopes plus ci, deps, docs, main and spec, and passes vars.RUNNER as runs-on.

This breaks callers: with no scopes, the workflow does not start. A copier update writes the input. A hand-written caller, as in infra, adds it with its pin update, or its required check blocks that update. devops-cli must first fill its empty answer scopes. The release is v0.4.0 (bump-minor-pre-major).

Existing tool: the scopes input of action-semantic-pull-request.

Proof: all 191 template cases pass. actionlint refuses a caller with no scopes. Five public renders keep their scope list. Live here: scope ci passed, an unknown scope failed, and an unset RUNNER gave ubuntu-26.04.

Closes #7
Change: openspec/changes/archive/2026-11-30-7-static-title-scopes/

pr-title.yml takes the required input scopes and checks out no file. It
checks the pull request title only, and asks for pull-requests: read. The
template caller renders the scopes from the answer scopes and passes the
variable RUNNER. release-please keeps the major version at 0.

BREAKING CHANGE: a caller of pr-title.yml must pass the input scopes, and
the workflow no longer checks the commit subject of a pull request with
one commit.
@dan-petty dan-petty added type/feature Type feature: a new function scope/ci GitHub Actions workflows and pre-commit hooks labels Nov 30, 2026
@dan-petty dan-petty changed the title feat(ci): pass static title scopes from the answers feat(unlisted): pass static title scopes from the answers Nov 30, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Notes for the merge:

  1. This pull request changes workflows. After the merge, release-please opens the release pull request for v0.4.0, which merges itself. From that merge until the release v0.4.0 exists, merge no other pull request that changes a file in .github/workflows/, also no Renovate update (fix(ci): create the release when a workflow merges after it #37). Before the next such merge, make sure that the release v0.4.0 exists and that the release pull request has the label autorelease: tagged.
  2. The title has no !, because devops pr refuses it. The release is v0.4.0 with or without it. With no !, the changelog gets no breaking-changes section. To get the section, add ! after feat(ci) in the web UI before the merge, and wait for the title check.
  3. After the release, the Renovate update of dan-petty/infra cannot merge until its title caller passes scopes.

Live proof on this pull request:

  • Title scope ci on head 15fb95d: PR title / Semantic PR title passed (run 46489132425).
  • Title scope unlisted on the same head: the check failed with Unknown scope "unlisted" and Scope must match one of: ci, deps, docs, main, spec (run 46489209077).
  • Scratch commit 721d94c passed runs-on: ${{ vars.RUNNER }} with no variable set: the run started, and its job ran on ubuntu-26.04 (run 46489403519). Commit 544688b reverts it.

@dan-petty dan-petty changed the title feat(unlisted): pass static title scopes from the answers feat(ci): pass static title scopes from the answers Nov 30, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 30, 2026 18:58
@dan-petty
dan-petty merged commit d11457e into main Nov 30, 2026
14 of 16 checks passed
@dan-petty
dan-petty deleted the feat/7-static-title-scopes branch November 30, 2026 19:00
dan-petty-release Bot added a commit that referenced this pull request Nov 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](v0.3.2...v0.4.0)
(2026-11-30)


### Features

* **ci:** pass static title scopes from the answers
([#40](#40))
([d11457e](d11457e)),
closes [#7](#7)

---
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 and pre-commit hooks type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(ci): pass static PR-title scopes from the Copier answers

1 participant