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

Prevent example from failing on unmerged PRs #133

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

Krzmbrzl
Copy link
Contributor

@Krzmbrzl Krzmbrzl commented Jul 6, 2024

This should prevent users from experiencing #127 when simply following the README example.

This should prevent users from experiencing sorenlouv#127 when simply following the README example.
@@ -14,6 +14,7 @@ on:
jobs:
backport:
name: Backport PR
if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport'))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the workflow will only be triggered when the PR is merged and does NOT contain the backport label. Should it be when it's merged and DOES contain the label?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No - backport is the default label the tool assigns to backport PRs for which we don't want to run the tool again (e.g. no backport of the backport)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I misunderstood. That makes sense.

@sorenlouv sorenlouv merged commit 929f69d into sorenlouv:main Jul 10, 2024
1 check passed
@sorenlouv
Copy link
Owner

Thanks for the contribution!

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

Successfully merging this pull request may close these issues.

2 participants