Skip to content

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

Closed

Description

@dan-petty

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.yml is parsed as a YAML list
  • THEN the list contains an object whose name key equals scope/git and whose color and description keys 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.yml declares scope/git
  • THEN the created pull request has the label scope/git and 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/git label 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/github and does not name the concrete areas (config, credentials) seen in the DevContainer and CI files.
  • What color should the scope/git label use?: 24292E (dark gray, same as scope/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.yml should the scope/git entry be placed?: In the Scope Labels section, immediately after scope/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/git from its closest relative scope/github, making the file harder to scan.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/ci
    status/new
    value/low
    effort/low
    on Oct 30, 2026
  2. dan-petty commented on Oct 30, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/ci. The (ci) scope of the title gives the scope.
    • Priority: P2-Medium. A missing label causes a warning on every PR with the git scope but does not block work.
    • Value: Low. One missing label entry causes a warning; the PR still functions without it.
    • Effort: Low. Adding one label entry to .github/labels.yml is a small configuration change.
    • Related: fix(pr): devops pr create labels the pull request from its title #2748, which asks for a different 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.
  3. added
    priority/p2-medium
    on Oct 30, 2026
  4. added
    status/ready
    and removed
    status/new
    on Oct 30, 2026
  5. devops-cli-service commented on Oct 30, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 0232e3e (see proposed design in issue body).

  6. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Oct 31, 2026
  7. removed
    status/in-review
    on Oct 31, 2026
  8. added a commit that references this issue on Oct 31, 2026
  9. dan-petty commented on Oct 31, 2026

    @dan-petty
    OwnerAuthor

    Second case on 2026-10-31: devops pr create for PR #2836 warns that .github/labels.yml does not declare scope/agents, and the PR gets no scope label. The same class as scope/git. A fix for this issue should add both, or make the title scope check list every scope in use.

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/lowpriority/p2-mediumscope/cisource/agenttype/bugvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions