Skip to content

refactor(ci): render the title workflow from the template - #7948

Merged
dan-petty merged 7 commits into
mainfrom
refactor/7923-render-title-workflow-from-template
Nov 30, 2026
Merged

dan-petty merged 7 commits into
mainfrom
refactor/7923-render-title-workflow-from-template

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The repository template of dan-petty/github-workflows owns pr-title.yml and labels.yml, but this repository held its own version of each. So a template update conflicted.

  • copier update moves the template to v0.4.0, and these two files are exact renders. The 51 labels and the 48 title scopes do not change.
  • The jobs Semantic PR title and Plan Check move to pr-checks.yml with no change, so the required check keeps its name.
  • Each pull request also gets the check PR title / Semantic PR title. A new scope now needs copier update and a line in pr-checks.yml.
  • release.yml stays local, so a template update still conflicts there.
  • The finding issue titles read labels.yml with the reader of intake, because their private reader did not read the list form. A file that is no label list now stops them with an error that names it.
  • labels.yml holds no removed list, so the label sync no longer deletes the ten labels of that list. The change deletes no label.

Closes #7923

Change: openspec/changes/archive/2026-11-30-7923-render-title-workflow-from-template/

@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 30, 2026
@dan-petty dan-petty changed the title refactor(ci): render the title workflow from the template refactor(nosuch): do not merge, title scope proof Nov 30, 2026
@dan-petty dan-petty changed the title refactor(nosuch): do not merge, title scope proof ci(ci): do not merge, hidden type title proof Nov 30, 2026
@dan-petty dan-petty changed the title ci(ci): do not merge, hidden type title proof refactor(ci): render the title workflow from the template Nov 30, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Live proof of the two title checks

All runs use the head 76757380ca8c85f317d6c0cd7bcdfc40c458a1ca. Only the title changed, and it has its first text again.

Title Semantic PR title PR title / Semantic PR title
refactor(ci): render the title workflow from the template pass (run) pass (run)
refactor(nosuch): do not merge, title scope proof fail: Unknown scope "nosuch" (run) fail: Unknown scope "nosuch" (run)
ci(ci): do not merge, hidden type title proof fail at the step Check that a Hidden Type Ships No Runtime Code (run) pass (run)

The library job ran on ubuntu-26.04, because the repository has no variable RUNNER. Plan Check was skipped, as this is not a plan pull request. No live run of this pull request proves the order of Plan Check after a failed title check.

Changes after the second review

  • A labels file that is no label list made devops roadmap finding-issues stop with a Python traceback. It now stops with one error line that names the file. devops pr describe uses the same read.
  • The comment of the job plan-check in pr-checks.yml had its lines in the wrong order.

Checked with a command

  • The jobs of pr-checks.yml parse equal to those of pr-title.yml of main. The 51 labels are equal in name, color and description.
  • A render of v0.4.0 from the recorded answers gives pr-title.yml, labels.yml, github/repository.yaml and .copier-answers.yml byte for byte.
  • The command of "Add a Scope" in a scratch clone changed only .copier-answers.yml, labels.yml and pr-title.yml.
  • A copier update to a local test tag gave a conflict only in release.yml.

Steps that need a person

  1. After the merge, require the library check. First give each open pull request a new head, and confirm that PR title / Semantic PR title reports on it: uv run devops gh api -X PUT repos/dan-petty/devops-cli/pulls/<number>/update-branch. Then open https://github.com/dan-petty/devops-cli/rules/21466414 and add PR title / Semantic PR title (GitHub Actions) to "Require status checks to pass". Keep Semantic PR title. If you skip this step, only the local check is required, and the removal of the second scope list cannot start. If you add the check first, each pull request without it waits.
  2. The ten old labels (chore(github): delete the ten labels that #5503 left live #7951). Delete them or keep them. The commands are in that issue. If you skip this step, the labels stay and nothing breaks.

@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 76757380ca8c85f317d6c0cd7bcdfc40c458a1ca

Check Conclusion Link
Plan Check skipped run
Tests & Coverage success run
Fail-to-Pass Check skipped run
PR title / Semantic PR title success run
Semantic PR title success run
devops-cli success run
zizmor success run
trivy-config success run
gitleaks success run
Trivy neutral run
Service Image Tests (shard 3 of 6) success run
Service Image Tests (shard 4 of 6) success run
Service Image Tests (shard 1 of 6) success run
Service Image Tests (shard 2 of 6) success run
Service Image Tests (shard 6 of 6) success run
Service Image Tests (shard 5 of 6) success run
Changed-Test Independence success run
CodeQL success run
Test Job Duration skipped run
Tests on Main skipped run
Design Tokens success run
Tests & Coverage (shard 6 of 6) success run
Tests & Coverage (shard 4 of 6) success run
Tests & Coverage (shard 1 of 6) success run
Service Image Build success run
Tests & Coverage (shard 2 of 6) success run
Changed-Test Independence (run 1 of 3) success run
Changed-Test Independence (run 3 of 3) success run
Service Image success run
Static Analysis success run
Changed-Test Independence (run 2 of 3) success run
Tests & Coverage (shard 5 of 6) success run
Tests & Coverage (shard 3 of 6) success run
Runner Image success run
Docs Site Build success run
Analyze (actions) success run
Analyze (python) success run

Skipped check: Plan Check
Skipped check: Fail-to-Pass Check
Skipped check: Trivy
Skipped check: Test Job Duration
Skipped check: Tests on Main

@dan-petty
dan-petty marked this pull request as ready for review November 30, 2026 21:30
@dan-petty
dan-petty merged commit ae847d2 into main Nov 30, 2026
46 of 49 checks passed
@dan-petty
dan-petty deleted the refactor/7923-render-title-workflow-from-template branch November 30, 2026 21:31
dan-petty-release Bot added a commit that referenced this pull request Nov 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.265.1](v0.265.0...v0.265.1)
(2026-11-30)


### Bug Fixes

* **docker:** let uv pick the Python of each checkout
([#7930](#7930))
([54b9aab](54b9aab))


### Code Refactoring

* **ci:** render the title workflow from the template
([#7948](#7948))
([ae847d2](ae847d2))

---
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/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(ci): render the title workflow from the template

1 participant