Skip to content

Support for labeling based on PR title #809

Open
@rzvxa

Description

@rzvxa

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

Activity

gowridurgad

gowridurgad commented on Oct 7, 2024

@gowridurgad

Hello @rzvxa,
Thank you for creating this feature request. We will investigate it and get back to you as soon as we have some feedback.

rzvxa

rzvxa commented on Oct 7, 2024

@rzvxa
Author

Hello @rzvxa, Thank you for creating this feature request. We will investigate it and get back to you as soon as we have some feedback.

Thanks, I appreciate your time❤️

iamironz

iamironz commented on Oct 28, 2024

@iamironz

This would be very beneficial; please consider implementing it.
Thank you in advance!

benfielden-onx

benfielden-onx commented on Dec 11, 2024

@benfielden-onx

For our case we would also find this very useful for applying a "DO-NOT-MERGE" label to a PR when they have "do not merge" in the title

linked a pull request that will close this issue on Apr 29, 2025
HaydenReeve

HaydenReeve commented on May 16, 2025

@HaydenReeve

This would be a huge benefit for our use case as well. We don't enforce anything on individual branches, only on the actual merge where we squash and use the PR title and description.

So our branch names aren't curated, but our PR titles are. Which unfortunately falls outside of the current action configuration.

shadoath

shadoath commented on May 31, 2025

@shadoath

Tracking this with the good work done in #866.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @shadoath@rzvxa@iamironz@HaydenReeve@benfielden-onx

      Issue actions

        Support for labeling based on PR title · Issue #809 · actions/labeler