Skip to content

GitHub Trigger Node: Add label-based triggering #1721

@giselles-ai

Description

@giselles-ai

Task description

Add the ability to use GitHub labels as a trigger condition in the GitHub Trigger Node.

Background

Currently, it is not possible to trigger a workflow based on the presence of a specific label on a GitHub issue or pull request. This limits the ability to create targeted workflows that only execute when certain labels are applied.

For example, in a Q&A agent use case, it would be beneficial to trigger a workflow only when an issue is assigned the question label. This would allow for the automated processing of questions without triggering unnecessary workflow runs for issues that are not questions.

The proposed solution is to add a new configuration option to the GitHub Trigger Node that allows users to specify one or more GitHub labels. The workflow would then only be triggered if one of the specified labels is present on the issue or pull request that fires the event.

Image

TODO (Optional)

  • Add a new configuration option for labels to the GitHub Trigger Node UI.
  • Implement logic to filter incoming GitHub webhook events based on the specified labels.
  • Update documentation for the GitHub Trigger Node to include the new label condition.

Additional notes (Optional)

Benefits:

  • More targeted and efficient workflows: Workflows will only run when specific, relevant conditions are met, reducing unnecessary executions.
  • Improved automation: Enables the creation of more sophisticated and automated workflows based on established labeling conventions.
  • Enhanced user experience: Provides users with greater control and flexibility over their GitHub-triggered workflows.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions