-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Run sync when issue is labeled with Sync Backport Changelog #63793
Run sync when issue is labeled with Sync Backport Changelog #63793
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢
…-issue-is-labeled
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Thanks Kai! I'll merge tomorrow morning then create a new sync issue for 6.7 and we'll see if it works. |
@@ -18,7 +27,13 @@ jobs: | |||
run: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can skip checking out the repo to check for changes if it's triggered by the label
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to check out the repo because of the awk
in the script below. We can skip the git diff
though. I've done that.
I've updated the script to skip the Tested everything in my Gutenberg fork. Here's merging a PR that has no changes in https://github.com/noisysocks/gutenberg/actions/runs/10050944095/job/27779706306 Here's merging a PR that has changes in https://github.com/noisysocks/gutenberg/actions/runs/10050926085/job/27779663400 Here's adding the label to an issue: https://github.com/noisysocks/gutenberg/actions/runs/10050917093/job/27779640416 |
Yay it works #63827 |
Stacked onto #63792.
This PR goes a bit further and updates the Sync Core Backport workflow to run when an issue is labeled with the
🤖 Sync Backport Changelog
label.You can see it working here:
https://github.com/noisysocks/gutenberg/actions/runs/10034996226/job/27730360753