Skip to content

Commit 9ad1f9d

Browse files
Merge changes published in the Gutenberg plugin "release/13.1" branch
1 parent 9c15c66 commit 9ad1f9d

455 files changed

Lines changed: 8749 additions & 15563 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const majorMinorRegExp =
2626
*/
2727
const developmentFiles = [
2828
'**/benchmark/**/*.js',
29-
'**/@(__mocks__|__tests__|test)/**/*.js',
29+
'**/@(__mocks__|__tests__|test)/**/*.{js,ts,tsx}',
3030
'**/@(storybook|stories)/**/*.js',
3131
'packages/babel-preset-default/bin/**/*.js',
3232
];

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,14 @@
106106
/packages/html-entities
107107
/packages/i18n @swissspidy
108108
/packages/is-shallow-equal
109+
/packages/keyboard-shortcuts
109110
/packages/keycodes
111+
/packages/preferences @talldan
110112
/packages/priority-queue
111113
/packages/token-list
112114
/packages/url
113115
/packages/wordcount
114116
/packages/warning
115-
/packages/keyboard-shortcuts
116117

117118
# Extensibility
118119
/packages/hooks @adamsilverstein

.github/report-flaky-tests/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ inputs:
88
description: 'The flaky-test label name'
99
required: true
1010
default: 'flaky-test'
11-
artifact-name:
12-
description: 'The name of the uploaded artifact'
11+
artifact-name-prefix:
12+
description: 'The prefix name of the uploaded artifact'
1313
required: true
1414
default: 'flaky-tests-report'
1515
runs:

.github/report-flaky-tests/index.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ const metaData = {
2929
( async function run() {
3030
const token = core.getInput( 'repo-token', { required: true } );
3131
const label = core.getInput( 'label', { required: true } );
32-
const artifactName = core.getInput( 'artifact-name', { required: true } );
32+
const artifactNamePrefix = core.getInput( 'artifact-name-prefix', {
33+
required: true,
34+
} );
3335

3436
const octokit = github.getOctokit( token );
3537

3638
const flakyTests = await downloadReportFromArtifact(
3739
octokit,
38-
artifactName
40+
artifactNamePrefix
3941
);
4042

4143
if ( ! flakyTests ) {
@@ -191,16 +193,16 @@ async function fetchAllIssuesLabeledFlaky( octokit, label ) {
191193
return issues;
192194
}
193195

194-
async function downloadReportFromArtifact( octokit, artifactName ) {
196+
async function downloadReportFromArtifact( octokit, artifactNamePrefix ) {
195197
const {
196198
data: { artifacts },
197199
} = await octokit.rest.actions.listWorkflowRunArtifacts( {
198200
...github.context.repo,
199201
run_id: github.context.payload.workflow_run.id,
200202
} );
201203

202-
const matchArtifact = artifacts.find(
203-
( artifact ) => artifact.name === artifactName
204+
const matchArtifact = artifacts.find( ( artifact ) =>
205+
artifact.name.startsWith( artifactNamePrefix )
204206
);
205207

206208
if ( ! matchArtifact ) {

.github/workflows/end2end-test-playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ jobs:
6363
uses: actions/upload-artifact@e448a9b857ee2131e752b06002bf0e093c65e571 # v2.2.2
6464
if: always()
6565
with:
66-
name: flaky-tests-report
66+
name: flaky-tests-report-playwright
6767
path: flaky-tests
6868
if-no-files-found: ignore

.github/workflows/end2end-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ jobs:
6161
uses: actions/upload-artifact@e448a9b857ee2131e752b06002bf0e093c65e571 # v2.2.2
6262
if: always()
6363
with:
64-
name: flaky-tests-report
64+
name: flaky-tests-report-${{ matrix.part }}
6565
path: flaky-tests
6666
if-no-files-found: ignore

.github/workflows/flaky-tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ name: Report Flaky Tests
22

33
on:
44
workflow_run:
5-
# We should also add 'End-to-End Tests Playwright' here but that
6-
# wil run this workflow whenever either one of them completes.
7-
workflows: ['End-to-End Tests']
5+
workflows: ['End-to-End Tests', 'End-to-End Tests Playwright']
86
types:
97
- completed
108

@@ -31,4 +29,4 @@ jobs:
3129
with:
3230
repo-token: '${{ secrets.GITHUB_TOKEN }}'
3331
label: '[Type] Flaky Test'
34-
artifact-name: flaky-tests-report
32+
artifact-name-prefix: flaky-tests-report

bin/test-create-block.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fi
5858
expected=6
5959
actual=$( find src -maxdepth 1 -type f | wc -l )
6060
if [ "$expected" -ne "$actual" ]; then
61-
error "Expected $expected files in the `src` directory, but found $actual."
61+
error "Expected $expected files in the \`src\` directory, but found $actual."
6262
exit 1
6363
fi
6464

@@ -72,7 +72,7 @@ status "Verifying build..."
7272
expected=5
7373
actual=$( find build -maxdepth 1 -type f | wc -l )
7474
if [ "$expected" -ne "$actual" ]; then
75-
error "Expected $expected files in the `build` directory, but found $actual."
75+
error "Expected $expected files in the \`build\` directory, but found $actual."
7676
exit 1
7777
fi
7878

changelog.txt

Lines changed: 372 additions & 310 deletions
Large diffs are not rendered by default.

docs/explanations/architecture/full-site-editing-templates.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
## Template and template part flows
44

5-
<div class="callout callout-alert">
6-
This documentation is for block templates and template parts, these features are part of the Full Site Editing project releasing in WordPress 5.9.
7-
</div>
8-
95
This document will explain the internals of how templates and templates parts are rendered in the frontend and edited in the backend. For an introduction about block themes and Full site editing templates, refer to the [block theme documentation](/docs/how-to-guides/themes/block-theme-overview.md).
106

117
## Storage

0 commit comments

Comments
 (0)