Repository navigation
Description
Problem
devops pr create --title "test(git): ..." warns: "The scope git of the title has no label: .github/labels.yml does not declare scope/git. The pull request gets no scope label."
Expected
The git scope has a label in .github/labels.yml, as the other scopes of Conventional Commit titles do. The pull request gets that label.
Seen in
Pull request #2799 (issue #2146).
Proposed design
Problem statement
The devops pr create command warns when a PR title uses the scope git because .github/labels.yml does not declare a scope/git label. Other Conventional Commit scopes used in this repository have a matching label, but git is missing. As a result, a PR with a git scope gets no scope label applied.
Acceptance criteria
Requirement: scope/git label declared
.github/labels.yml SHALL declare a label named scope/git with a color and a description.
Scenario: label file contains scope/git entry
- WHEN the file
.github/labels.ymlis parsed as a YAML list - THEN the list contains an object whose
namekey equalsscope/gitand whosecoloranddescriptionkeys are non-empty strings
Requirement: PR with git scope receives the label
A pull request whose Conventional Commit title scope is git SHALL receive the scope/git label and SHALL NOT emit a warning about a missing scope label.
Scenario: pr create with git scope applies label
- WHEN
devops pr create --title "test(git): example"is run against a repository whose.github/labels.ymldeclaresscope/git - THEN the created pull request has the label
scope/gitand the command output contains no warning about a missing scope label
Existing Tool Considered
No check has run. This is a one-entry addition to the project's own .github/labels.yml configuration file. No external tool or library provides this label. The cost is adding three YAML keys (name, color, description) to an existing list in one file.
Key questions
- What description should the
scope/gitlabel carry?: Git commands, git configuration, and git credential handling (best practice) [sources: .github/labels.yml]- Chosen: Git commands, git configuration, and git credential handling. Matches the pattern of other scope descriptions that name the concrete areas the scope covers. Distinguishes from
scope/github(GitHub API, Projects, Labels, PR automation) by focusing on the git tool itself. - Rejected: Git version control operations. Too broad; overlaps with
scope/githuband does not name the concrete areas (config, credentials) seen in the DevContainer and CI files.
- Chosen: Git commands, git configuration, and git credential handling. Matches the pattern of other scope descriptions that name the concrete areas the scope covers. Distinguishes from
- What color should the
scope/gitlabel use?: 24292E (dark gray, same asscope/github) (best practice) [sources: .github/labels.yml]- Chosen: 24292E (dark gray, matching scope/github). Git and GitHub are closely related areas. Reusing the same color groups them visually, consistent with the file's practice of reusing colors across related labels (e.g. 1D76DB for type/refactor, scope/release, scope/ci).
- Rejected: A new color not used elsewhere. The file already reuses colors across labels, so a unique color is not required and would add no clarity.
- Where in
.github/labels.ymlshould thescope/gitentry be placed?: In the Scope Labels section, immediately afterscope/github(best practice) [sources: .github/labels.yml]- Chosen: After scope/github. Groups the two related scopes together and keeps the alphabetical-ish ordering of the section intact.
- Rejected: At the end of the Scope Labels section. Works but separates
scope/gitfrom its closest relativescope/github, making the file harder to scan.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Oct 30, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(ci)scope of the title gives the scope.A missing label causes a warning on every PR with the git scope but does not block work.One missing label entry causes a warning; the PR still functions without it.Adding one label entry to .github/labels.yml is a small configuration change.Both concern PR labeling from the title, but #2748 builds the labeling mechanism while the candidate declares a missing scope label in labels.yml.devops-cli-service commentedon Oct 30, 2026
Status set to Ready at 0232e3e (see proposed design in issue body).
chore(main): release 0.24.0 (#2819)
dan-petty commentedon Oct 31, 2026
Second case on 2026-10-31:
devops pr createfor PR #2836 warns that.github/labels.ymldoes not declarescope/agents, and the PR gets no scope label. The same class asscope/git. A fix for this issue should add both, or make the title scope check list every scope in use.fix(ci): allow only declared scopes in pull request titles (#2846)
chore(main): release 0.26.1 (#2848)