Skip to content

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

Done

Description

@dan-petty

Problem or Motivation

The repository template of dan-petty/github-workflows owns .github/workflows/pr-title.yml and .github/labels.yml. This repository holds a hand-written version of each file. So each template update of Renovate conflicts. The update #7914 (v0.2.0 to v0.3.2) had conflicts in pr-title.yml and release.yml, and a person closed it without a merge.

Release v0.4.0 of the library passes static title scopes from the Copier answer scopes to the reusable title workflow. So the template can render both files with no local change.

Proposed Solution & Architectural Design

  • Move the jobs Semantic PR title and Plan Check of pr-title.yml into a file that this repository owns, .github/workflows/pr-checks.yml. Each job keeps its name, its condition and its steps. So the required check Semantic PR title of the ruleset of main stays.
  • Run copier update to v0.4.0 with the answers scopes, scope_descriptions and extra_labels. pr-title.yml and labels.yml become exact renders. The check PR title / Semantic PR title appears next to the local check.
  • Keep the local release.yml. A different item owns it.
  • Make each reader of labels.yml read the list form of the render. The finding issue titles use a private reader of the mapping form.
  • The render holds no removed list. Remove the requirement of the spec github-labels that asks the file for that list. Delete no label.
  • Correct the documents and the specs that name pr-title.yml as the file of the local jobs.

After the merge, a person can add PR title / Semantic PR title to the ruleset of main. A later change removes the second title check.

Target Subsystem

SDLC, Git & PR Governance

Existing Tool Considered

Copier and the repository template of dan-petty/github-workflows cover the need. The change builds no new tool.

Alternatives check of 2026-11-30: not-applicable.
Class: refactor, no model call.
Tool: none found.

Activity

  1. added
    type/refactor
    scope/ci
    source/agent
    status/new
    value/medium
    effort/medium
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
    • Related: fix(repos): a kept template file conflicts at copier update #7411, which asks for a different change. Both address template file conflicts at copier update, but 7411 fixes the devops repos onboard command while the candidate refactors this repository to render pr-title.yml from the template and split local jobs into pr-checks.yml.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 30, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 30, 2026
  5. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-30 22:54 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/cisource/agenttype/refactorvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions