Add label metadata when creating a label

Open
#913 1 comment 1 reaction 0 assignees View on GitHub

@athackst is already working on this.

Since Feb 11, 2026.

  • #54 by @srz-zumix — merged
  • #924 by @athackst — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
ci-cd

Research direction

No source files or test paths are named in the issue. Start by reviewing the configuration handling for label creation and the contributor's existing tests; done means label color and description can be defined in the configuration and are applied when labels are created.

Written by the indexing model from the issue text.

Description

feature request

Description:
Similar to #76 - It would be neat if we could define the label color and description in the configuration file.

Example:

- changed-files: 
  - any-glob-to-any-file: ['list', 'of', 'globs']
  - any-glob-to-all-files: ['list', 'of', 'globs']
  - all-globs-to-any-file: ['list', 'of', 'globs']
  - all-globs-to-all-files: ['list', 'of', 'globs']
- base-branch: ['list', 'of', 'regexps']
- head-branch: ['list', 'of', 'regexps']
- description: 'Description of label'
- color: 'Color of label'

Justification:
Consistency in labels across repos if using a reusable workflow across repos

Are you willing to submit a PR?
Yes! I have a working branch + tests I can submit if there's interest

Dominant language
TypeScript
Stars
2.5k
Forks
488
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from actions/labeler

All issues in actions/labeler

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.