Skip to content

Implement workflow to sync repository labels to Project custom fields #2

@mfw78

Description

@mfw78

Context

The Nexum Labs organization-wide GitHub Project has custom fields for Priority and Issue Type that mirror the label system used across repositories:

  • Priority labels: p0-fire, p1-broken, p2-annoying, p3-maybe
  • Type labels: bug, feature, dx, perf, debt, docs

Currently, these exist as both:

  1. Repository labels (source of truth)
  2. Project custom fields (for grouping/slicing views)

Problem

Without automation, these need to be manually kept in sync, violating the "single source of truth" principle.

Proposed Solution

Implement GitHub Actions workflows to automatically sync repository labels to Project custom fields when:

  • Issues are labeled/unlabeled
  • Issues are added to the project
  • Labels are modified

Benefits

  • Maintain labels as single source of truth
  • Enable grouping/slicing views by Priority and Type in Projects
  • Automatic sync eliminates manual duplication
  • Consistent categorization across repos and project

Implementation Notes

  • Use GitHub Actions with Projects API v2
  • May need workflow in each repo or centralized in .github repo
  • Consider using github-script action for flexibility
  • Handle edge cases: multiple priority labels, label removal, etc.

Related

This aligns with the pm repository's principle: "Ship working code over process theater" - automation eliminates manual process overhead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions