Skip to content

Auto backport - promoted-to-master label not having effect #686

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

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

lsfreitas
Copy link
Contributor

@lsfreitas lsfreitas commented Apr 7, 2025

Currently adding a label backport-x.x is enough to open a backport PR.

The issue is that the github action is only checking for backport labels while the script if we have args.pull_request will ignore completely this label again.

With this fix I'm setting the check for labels including the promoted_label outside of the else statement. This way the script will always check it.

Refs: scylladb#4979

@lsfreitas lsfreitas self-assigned this Apr 7, 2025
@Annamikhlin
Copy link
Collaborator

Please update the Refs: scylladb#4979 in the msg.. cause the issue is not in the same repo you need to put the full path

@@ -151,12 +151,12 @@ def main():
else:
labels = [label.name for label in pr.labels]
Copy link
Collaborator

Choose a reason for hiding this comment

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

what about to moving it also here? as you did in https://github.com/scylladb/scylla-pkg/pull/5037/?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes yes, you were faster than me 😄 Done! I've also updated the commit message and description for the issue reference

@lsfreitas lsfreitas force-pushed the fix-backport-labels branch 2 times, most recently from eef735d to c8ee117 Compare April 7, 2025 13:16
Currently adding a label backport-x.x is enough to open a backport PR.

The issue is that the github action is only checking for backport labels while the script if we have args.pull_request will ignore completely this label again.

With this fix I'm setting the check for labels including the promoted_label outside of the else statement. This way the script will always check it.

Refs: scylladb/scylla-pkg#4979
@lsfreitas lsfreitas force-pushed the fix-backport-labels branch from c8ee117 to f1b9fdc Compare April 7, 2025 13:18
@yaronkaikov yaronkaikov merged commit 411a984 into scylladb:next Apr 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants