Skip to content

Phase 3.1: Create labeling-governance.yml Workflow #1322

Description

@ashleyshaw

Description

Create a new consolidated workflow that handles all labeling operations for PRs and issues, consolidating logic from:

  • labeling.yml — Standard PR/issue labeling by branch/content patterns
  • dependabot-security-label.yml — Add security label to Dependabot PRs
  • issue-close-label-hygiene.yml — Remove in-progress labels on issue close

Work Breakdown

  1. Workflow Creation

    • Create .github/workflows/labeling-governance.yml
    • Add job 1: label-pr (from labeling.yml for PRs)
    • Add job 2: label-dependabot-security (from dependabot-security-label.yml)
    • Add job 3: label-issue (from labeling.yml for issues)
    • Add job 4: cleanup-on-close (from issue-close-label-hygiene.yml)
    • Configure conditional logic for each job
  2. Job Implementation

    • All jobs can run independently
    • Verify proper conditional logic
    • Test label operations via GitHub API

Definition of Ready (DoR)

  • Source workflows analyzed
  • Labeling logic documented
  • Conditional job structure designed
  • Test scenarios identified

Definition of Done (DoD)

  • Workflow file created and YAML valid
  • All labeling jobs migrated from source workflows
  • Conditional logic working correctly
  • PR triggers working for labeling
  • Issue triggers working for labeling
  • Label cleanup triggers on close
  • Manual dispatch option available
  • Tested on sample PR with feature branch
  • Tested on sample issue opened
  • Tested on issue close with labels
  • All labels applied with correct format
  • No linting errors (npm run lint:yaml)
  • Code review approved
  • Merged to develop

Effort

2 hours

Timeline

Week 9 (2026-07-26 to 2026-07-28)

Related

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

Priority

None yet

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions