Skip to content

Label PR based on base branchΒ #54

Closed

Description

@hkdobrev

Could the automatic labeler support more triggers than just the paths changed?

A very useful workflow for us would be set labels on the PR depending on the base branch of the PR. Depending on the Git branching workflow used in a project, this could have different use cases. For example, using the git-flow, a PR towards the development branch could be labeled as a feature and one towards master as a release.

If this feature request is implemented I imagine automatic labeling and its configuration could later be expanded to be based on branch patterns, author (if it's a robot for example) etc.

Activity

  1. XVilka commented on Mar 11, 2020

    @XVilka

    Also related #55 - probably implementing these will share some code.

  2. MaksimZhukov commented on May 24, 2023

    @MaksimZhukov
    Contributor

    Hello everyone!
    We released the new alpha version of the action that includes the implementation of this feature. For more information, see the release notes. We would really appreciate it if you could try it out and provide us with your feedback.

    I will keep this issue open until the stable version is released.
    Thank you!

  3. self-assigned this
    on Jul 11, 2023
  4. MaksimZhukov commented on Dec 5, 2023

    @MaksimZhukov
    Contributor

    Hello everyone!
    We have released the new major version of the action that includes the implementation of this feature. Please read the action documentation to find out how to adapt your configuration files and workflows for use with the new action version.

    Thank you all for your patience!
    Do not hesitate to contact us if you have any questions!

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

Metadata

Metadata

Assignees

Labels

feature requestNew feature or request to improve the current logic

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions