Skip to content

Labeling with other triggers #810

Open

Description

@aSyoriKano

Description:
The current autolabeler action primarily supports labeling for pull_request events only. My proposal is to enhance this action to also support other types of GitHub events such as push, issues, and schedule, allowing it to automatically apply labels in these scenarios as well.

Justification:
Many workflows could benefit from automated labeling not only on pull requests but also on other events like pushes to specific branches or the creation of issues. In my case, I have workflows triggered by push events that automatically create pull requests. I intended to have labels applied within the same workflow, but currently, labels cannot be added because pull_request events are not triggered by pull request creations from workflows. Additionally, in push events, the event payload does not include the pull request information, resulting in the workflow handling it as "no branch" and thus failing to apply labels. This feature would enable GitHub Actions users to utilize labeling more flexibly and effectively across their projects, especially in automating workflow steps that are currently disjointed due to event limitations.

Are you willing to submit a PR?
I have not developed actions before, but I am willing to contribute to the implementation of this feature with the appropriate support and guidance.

Activity

  1. added
    feature request
    on Oct 7, 2024
  2. v-gowridurgad commented on Oct 7, 2024

    @v-gowridurgad

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

  3. srz-zumix commented on Oct 24, 2025

    @srz-zumix

    Hi @gowridurgad
    I have submitted a PR #873 to fix this issue. Could you please take a look?

  4. thompson-tomo commented on Mar 20, 2026

    @thompson-tomo

    I am also interested in this as what I want to be able to do is use the output parameters of the labeller job as input to my other jobs. This would work when my trigger is a pr but doesn't when it is a push or merge group trigger.

    In effect the way I see it is if the action has been triggered by:

    • no pr but has issue. Use body of issue to determine labels.
    • no pr but has a branch. Use file list of that commit as your input files and don't add labels just use output parameters

    As such I don't think that the linked pr goes far enough.

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 request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions