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

Don't run CI if backport PRs have the label conflicts #161

Open
christophfroehlich opened this issue Nov 3, 2024 · 1 comment
Open

Don't run CI if backport PRs have the label conflicts #161

christophfroehlich opened this issue Nov 3, 2024 · 1 comment

Comments

@christophfroehlich
Copy link
Contributor

as per request of @saikishor

maybe with
if ${{ ! contains(toJson(github.event.pull_request.labels.*.name), 'conflicts') }}

https://stackoverflow.com/questions/71481086/is-pull-request-label-available-to-a-github-action
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idif

but I'm not sure if this event is retriggered if a new commit is added

@saikishor
Copy link
Member

We can give it a shot when we have some time and see. This could be helpful.
When we have merge conflicts, we can have mergify add conflicts tag automatically too

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