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

Add github labels #19

Open
delijah opened this issue Apr 10, 2019 · 1 comment
Open

Add github labels #19

delijah opened this issue Apr 10, 2019 · 1 comment

Comments

@delijah
Copy link

delijah commented Apr 10, 2019

We would like use conditions for github labels like this: if: 'my-custom-github-label' IN labels

Any chance to inlcude this?

@mbrotos
Copy link

mbrotos commented Jul 20, 2022

My method of fetching github label using Github CLI:

First set GH_TOKEN or GH_ENTERPRISE_TOKEN (and GH_HOST in this case). Then,

gh pr view $TRAVIS_PULL_REQUEST --json labels --jq '.labels[].name'

This can then be used in conditional logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants