Skip to content

Centralize auto-label mappings into a config file #5649

@Devansh-567

Description

@Devansh-567

The label mappings in .github/workflows/auto-label.yml are hardcoded as inline JavaScript. This has a few problems:

  • Contributors who want to add a label keyword must edit workflow logic, which is harder to review and requires understanding the JS
  • The issue and PR mapping objects are duplicated separately with subtle inconsistencies (e.g. [Tofino] vs [tofino])
  • Several prefixes used in real PRs ([ebpf], [ubpf], [graphs]) have no mapping at all
    I'd like to move the mappings to .github/label-mappings.json and have the workflow read it at runtime. Would the maintainers be open to this approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    infrastructureTopics related to code style and build and test infrastructure.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions