Support for labeling based on PR title

Open
#809 7 comments 24 reactions 0 assignees View on GitHub

@yyolk is already working on this.

Since Apr 29, 2025.

  • #866 by @yyolk — open

Assessment

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

Research direction

No files or tests are named. Start by tracing the existing branch-name labeling configuration and how pull request metadata is handled; done means configuration can match PR titles such as ^feat and ^fix and apply the corresponding labels.

Written by the indexing model from the issue text.

Description

feature request

Description:
It would be nice if we could use this action to set up a step that would label PRs based on their title.
Take feat(xxx): something and fix(yyy): something else as examples.
We can write a configuration like this:

T-feat:
  - pr-title: "^feat"

T-fix:
 - pr-title: "^fix"

And get respective labels on PRs based on their titles.

Justification:
Allows automation for workflows that have PR naming conventions and we already have something similar with the branch names, So if there isn't an API restriction making it impossible it can be a useful addition.

Are you willing to submit a PR?
Yes

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.