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

WP 6.6 Beta 3 🍒 #62641

Merged
merged 36 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f4c4a70
Cherry pick script: make authenticated requests
vcanales Jun 11, 2024
b7ce5b9
no need to trim again
vcanales Jun 11, 2024
2b5ac52
Page creation and duplication: Decode HTML entities in success notice…
carolinan Jun 11, 2024
c18544c
Fix cherry-pick script, missing --repo arg
ellatrix Jun 18, 2024
d633a42
Section Styles: Register block style variations on `init` (#62461)
aaronrobertshaw Jun 11, 2024
a052b4c
Fix showing double icons for connected blocks in pattern editor (#62317)
kevin940726 Jun 12, 2024
30648f5
List View: Respect default shortcuts in modals (#62479)
t-hamano Jun 12, 2024
a12600f
List View: Fix home and end key behaviour in very long lists (#62312)
andrewserong Jun 12, 2024
72115d8
Change `Site Editor` to `Edit site` (#62501)
up1512001 Jun 12, 2024
a95c451
Block bindings: Change bindings panel title, add description. (#62489)
cbravobernal Jun 12, 2024
49cc18e
Ensure that openref is defined before accessing to .current (#62508)
gigitux Jun 12, 2024
b5f409b
Inserter: Allow focus to move to the toggle when opening the inserter…
scruffian Jun 12, 2024
838f409
Docs: Correct typos in GitHub and JavaScript wordmarks (#62459).
peterwilsoncc Jun 12, 2024
79d03f3
Block Bindings / Pattern Overrides: Try preventing normal attribute u…
talldan Jun 13, 2024
55abcaa
Global styles: send theme object to setUserConfig (#61805)
ramonjd Jun 13, 2024
8d8f681
Extract the pattern overrides toolbar indicator from the `block-edito…
kevin940726 Jun 13, 2024
aac8874
Add custom CSS for block style variations. (#62526)
tellthemachines Jun 14, 2024
fe9fe31
Fix "insert before/after" not showing for blocks in site editor (#62530)
kevin940726 Jun 14, 2024
434e5c4
Update all `ConfirmDialog`s in the codebase to be size=medium (#62532)
talldan Jun 14, 2024
0f53d7b
Section styles: support i18n for variations declared in `theme.json` …
oandregal Jun 14, 2024
7cfc6c5
Section styles: consolidate variation name (#62550)
oandregal Jun 14, 2024
8ffc66f
Sort spacing sizes when all slugs begin numerically (#62567)
ajlende Jun 14, 2024
313031f
Block Editor: Remove 'rootClientId' argument for block lock selectors…
Mamaduka Jun 14, 2024
0cc07d4
Global Styles: Don't apply the background and text colors to typograp…
scruffian Jun 14, 2024
b6178b7
Caption utility component: Allow the main CSS Class Name to be exclud…
aatanasovdev Jun 17, 2024
69d7fba
Update caniuse-lite dependency to latest version (#62611)
talldan Jun 17, 2024
79c00ca
Editor: Render editPost slots only in the post editor (same for site …
youknowriad Jun 17, 2024
ecc7107
Save Panel: Remove connections icon and fix padding (#62542)
artemiomorales Jun 17, 2024
f0327a0
Global Styles: Skip registration of variation styles when unsupported…
aaronrobertshaw Jun 17, 2024
c17a892
Writing flow: split heading into default block (#61891)
ellatrix Jun 17, 2024
e08c158
Raw handling: fix for mixed blocks and freeform content (#62545)
saulyz Jun 17, 2024
6ac4b98
Update Private API opt-in string for WP 6.6. (#62635)
peterwilsoncc Jun 18, 2024
2bb7aa6
Performance: run block variation hook only for matches (#62617)
ellatrix Jun 18, 2024
f67cfde
Revert change that removes the social link block when pressing backsp…
talldan Jun 18, 2024
f35a1e4
Do not run changelog checks for branches other than main
ellatrix Jun 18, 2024
6d46562
Run on trunk, not main
ellatrix Jun 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/check-backport-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Verify Core Backport Changlog
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
branches:
- trunk
paths:
- 'lib/**'
- '!lib/load.php'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-components-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: OPTIONAL - Verify @wordpress/components CHANGELOG update
on:
pull_request:
types: [opened, synchronize]
branches:
- trunk
paths:
- 'packages/components/**'
- '!packages/components/src/**/stories/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/php-changes-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
<!-- pr-contains-php-changes -->
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress.

If so, it is recommended to create a [new Trac ticket](https://core.trac.wordpress.org/newticket) and submit a pull request to the [WordPress Core Github repository](https://github.com/WordPress/wordpress-develop) soon after this pull request is merged.
If so, it is recommended to create a [new Trac ticket](https://core.trac.wordpress.org/newticket) and submit a pull request to the [WordPress Core GitHub repository](https://github.com/WordPress/wordpress-develop) soon after this pull request is merged.

If you're unsure, you can always ask for help in the #core-editor channel in [WordPress Slack](https://make.wordpress.org/chat/).

Expand All @@ -76,7 +76,7 @@ jobs:
<!-- pr-contains-php-changes -->
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress.

If so, it is recommended to create a [new Trac ticket](https://core.trac.wordpress.org/newticket) and submit a pull request to the [WordPress Core Github repository](https://github.com/WordPress/wordpress-develop) soon after this pull request is merged.
If so, it is recommended to create a [new Trac ticket](https://core.trac.wordpress.org/newticket) and submit a pull request to the [WordPress Core GitHub repository](https://github.com/WordPress/wordpress-develop) soon after this pull request is merged.

If you're unsure, you can always ask for help in the #core-editor channel in [WordPress Slack](https://make.wordpress.org/chat/).

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload-release-to-plugin-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
return $?
}

# Only update trunk *if* the published release's version in Github is GREATER
# Only update trunk *if* the published release's version in GitHub is GREATER
# than the version currently published in the WP plugins repo. If not, then it
# will upload it as a new tag.
shouldUpdateTrunk=false
Expand Down
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6756.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6756

* https://github.com/WordPress/gutenberg/pull/62461
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6785.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6785

* https://github.com/WordPress/gutenberg/pull/62459
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6797.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6797

* https://github.com/WordPress/gutenberg/pull/62526
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6824.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6824

* https://github.com/WordPress/gutenberg/pull/62550
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6825.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6825

* https://github.com/WordPress/gutenberg/pull/62552
4 changes: 4 additions & 0 deletions backport-changelog/6.6/6837.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/6837

* https://github.com/WordPress/gutenberg/pull/62529
* https://github.com/WordPress/gutenberg/pull/62610
36 changes: 33 additions & 3 deletions bin/cherry-pick.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,25 @@ async function fetchPRs() {
* @return {Promise<Object>} Parsed response JSON.
*/
async function GitHubFetch( path ) {
const token = getGitHubAuthToken();
const response = await fetch( 'https://api.github.com' + path, {
headers: {
Accept: 'application/vnd.github.v3+json',
Authorization: `Bearer ${ token }`,
},
} );
return await response.json();
}

/**
* Retrieves the GitHub authentication token using `gh auth token`.
*
* @return {string} The GitHub authentication token.
*/
function getGitHubAuthToken() {
return cli( 'gh', [ 'auth', 'token' ] );
}

/**
* Attempts to cherry-pick given PRs using `git` CLI command.
*
Expand Down Expand Up @@ -369,15 +380,34 @@ function reportSummaryNextSteps( successes, failures ) {
function GHcommentAndRemoveLabel( pr ) {
const { number, cherryPickHash } = pr;
const comment = prComment( cherryPickHash );
const repo = 'WordPress/gutenberg';
try {
cli( 'gh', [ 'pr', 'comment', number, '--body', comment ] );
cli( 'gh', [ 'pr', 'edit', number, '--remove-label', LABEL ] );
cli( 'gh', [
'pr',
'comment',
number,
'--repo',
repo,
'--body',
comment,
] );
cli( 'gh', [
'pr',
'edit',
number,
'--repo',
repo,
'--remove-label',
LABEL,
] );

if ( LABEL === 'Backport to WP Beta/RC' ) {
cli( 'gh', [
'pr',
'edit',
number,
'--repo',
repo,
'--add-label',
BACKPORT_COMPLETED_LABEL,
] );
Expand Down Expand Up @@ -466,7 +496,7 @@ function getCurrentBranch() {
*/
async function reportGhUnavailable() {
console.log(
'Github CLI is not setup. This script will not be able to automatically'
'GitHub CLI is not setup. This script will not be able to automatically'
);
console.log(
'comment on the processed PRs and remove the backport label from them.'
Expand Down
6 changes: 3 additions & 3 deletions bin/plugin/commands/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,11 +606,11 @@ function getEntry( issue ) {

/**
* Builds a formatted string of the Issue/PR title with a link
* to the Github URL for that item.
* to the GitHub URL for that item.
*
* @param {string} title the title of the Issue/PR.
* @param {number} number the ID/number of the Issue/PR.
* @param {string} url the URL of the Github Issue/PR.
* @param {string} url the URL of the GitHub Issue/PR.
* @return {string} the formatted item
*/
function getFormattedItemDescription( title, number, url ) {
Expand Down Expand Up @@ -856,7 +856,7 @@ function sortFeatureGroups( featureGroups ) {
}

/**
* Returns a list of PRs created by first time contributors based on the Github
* Returns a list of PRs created by first time contributors based on the GitHub
* label associated with the PR. Also filters out any "bots".
*
* @param {IssuesListForRepoResponseItem[]} pullRequests List of pull requests.
Expand Down
2 changes: 1 addition & 1 deletion bin/plugin/commands/test/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import _pullRequests from './fixtures/pull-requests.json';
import botPullRequestFixture from './fixtures/bot-pull-requests.json';

/**
* pull-requests.json is a static snapshot of real data from the Github API.
* pull-requests.json is a static snapshot of real data from the GitHub API.
* We merge this with dummy fixture data for a "bot" pull request so as to
* ensure future updates to the pull-requests.json doesn't reduce test coverage
* of filtering out of bot PRs.
Expand Down
Loading
Loading