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

Update cherry pick script to add Backported to WP Core label for backports #58970

Merged

Conversation

getdave
Copy link
Contributor

@getdave getdave commented Feb 13, 2024

What?

Updates the cherry picking script to also add the Backported to WP Core label when cherry picking a PR for a backport during a WP release cycle.

Why?

Because we established a new convention whereby this label would be applied. In the future, usage of this label will help us to avoid false positives when building the PHP Sync Issue as it will allow us to omit PR which have this label from the list of commits that need manually syncing to WP Core.

How?

Uses GH Cli to edit the PR and add the label

Testing Instructions

Good question. There are no automated tests...

Testing Instructions for Keyboard

Screenshots or screencast

Co-authored-by: getdave get_dave@git.wordpress.org
Co-authored-by: youknowriad youknowriad@git.wordpress.org

@getdave getdave self-assigned this Feb 13, 2024
@getdave getdave added [Type] Enhancement A suggestion for improvement. Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts labels Feb 13, 2024
@getdave getdave marked this pull request as ready for review February 13, 2024 14:05
Copy link

github-actions bot commented Feb 13, 2024

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: getdave <get_dave@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@@ -334,6 +334,11 @@ function reportSummaryNextSteps( successes, failures ) {
nextSteps.push( 'Push this branch' );
nextSteps.push( 'Go to each of the cherry-picked Pull Requests' );
nextSteps.push( `Remove the ${ LABEL } label` );

if ( LABEL === 'Backport to WP Beta/RC' ) {
nextSteps.push( 'Add the "Backported to WP Core" label' );
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this label be hard coded in the code or should we make it an argument like 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.

Argument

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or at least a const

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@youknowriad I added a const for now. I don't have a use case for making this another arg yet. If we have one in the future we can easily add this.

It would be useful to bring this change in prior to Beta 3.

Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@getdave getdave merged commit 3d34af0 into trunk Feb 27, 2024
59 of 61 checks passed
@getdave getdave deleted the update/add-backported-label-when-cherry-picking-to-wp-release branch February 27, 2024 09:13
@github-actions github-actions bot added this to the Gutenberg 17.9 milestone Feb 27, 2024
getdave added a commit that referenced this pull request Feb 27, 2024
…ckports (#58970)

* Update script to add label

* Use named const
@getdave
Copy link
Contributor Author

getdave commented Feb 27, 2024

I have cherry picked this PR into the wp/6.5 branch so that the cherry picking script will function as intended for the Beta 3 today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants