Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triggering the action based on the Label on the Issue #158

Open
4 of 10 tasks
meolivar opened this issue Dec 19, 2022 · 1 comment
Open
4 of 10 tasks

Triggering the action based on the Label on the Issue #158

meolivar opened this issue Dec 19, 2022 · 1 comment
Labels
question Further information is requested

Comments

@meolivar
Copy link

meolivar commented Dec 19, 2022

Description

I am looking for a solution where the github action can only be triggered based on the label associated to the issue created in Github.

The use case is we are trying to trigger the workflow to send a message to slack based on a specific label attached to the issue.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • example code related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

package version:

node version:

OS version(s):

Steps to reproduce:

Expected result:

What you expected to happen

Actual result:

What actually happened

Attachments:

Logs, screenshots, screencast, sample project, funny gif, etc.

@srajiang
Copy link
Member

Hi @meolivar,

It sounds like you might want to try configuring this workflow action to be triggered by the issues event payload with the activity type labeled. Github docs on that here are very helpful and contain some setup configuration which you can add to your workflow.

on: 
   issues: 
       types: [labeled, unlabeled]

@srajiang srajiang added the question Further information is requested label Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants