Skip to content

Commit c3e6e72

Browse files
committed
Merge branch 'trunk' of github.com:WordPress/wordpress-develop into 64098/update-name
2 parents 7092cde + f8f4212 commit c3e6e72

File tree

168 files changed

+6139
-3959
lines changed

Some content is hidden

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

168 files changed

+6139
-3959
lines changed

.git-blame-ignore-revs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,14 @@ d44e1c2ce2dc638e89ed6a1d02b1cfadb8a15fe7 # [60048]
6161
a18719e7ea49ab7ac0091e076840cb7efdf51cc5 # [60049]
6262

6363
# 6.9 Coding Standards
64+
d0d89b62485e724e3d06f01981dd1940b2f36fce # [60074]
65+
c53010159b60735ffa6ba5fa8a416ff0e86a159c # [60109]
6466
cbb6519119276ceba4279eaee73ab66294ebd820 # [60402]
67+
3d736c763e0b1384c65abfa3bcf6d3bc45869516 # [60664]
68+
b96f25f5c31bfd1580c21084c368098792b4c741 # [60780]
69+
ff6c5fadfa6272685d910b474917ecb6adc17f10 # [60808]
70+
08b2f9cfe9064873a501c3543e2c995405431dcc # [60816]
71+
e683403cc1856113e3cb010b1579dcd01cdef5fc # [61036]
72+
8d24041c08a58b2f79504699fb3f63d01737b876 # [61075]
73+
87cbbb1dfcf19fcfc128fc66603462a649d01502 # [61087]
74+
db1b4811e5ab8df343b03032d7607abe01a9e8e2 # [61138]

.github/workflows/coding-standards.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ on:
99
- '3.[89]'
1010
- '[4-9].[0-9]'
1111
tags:
12-
- '[0-9]+.[0-9]'
13-
- '[0-9]+.[0-9].[0-9]+'
14-
- '!3.7.[0-9]+'
12+
- '3.[89]'
13+
- '3.[89].[0-9]+'
14+
- '[4-9].[0-9]'
15+
- '[4-9].[0-9].[0-9]+'
1516
pull_request:
1617
branches:
1718
- trunk

.github/workflows/end-to-end-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ on:
88
- '5.[3-9]'
99
- '[6-9].[0-9]'
1010
tags:
11-
- '[0-9]+.[0-9]'
12-
- '[0-9]+.[0-9].[0-9]+'
13-
- '![34].[0-9].[0-9]+'
14-
- '!5.[0-2].[0-9]+'
11+
- '5.[3-9]'
12+
- '5.[3-9].[0-9]+'
13+
- '[6-9]+.[0-9]'
14+
- '[6-9]+.[0-9].[0-9]+'
1515
pull_request:
1616
branches:
1717
- trunk

.github/workflows/javascript-tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ on:
88
- '3.[89]'
99
- '[4-9].[0-9]'
1010
tags:
11-
- '[0-9]+.[0-9]'
12-
- '[0-9]+.[0-9].[0-9]+'
13-
- '!3.7.[0-9]+'
11+
- '3.[89]'
12+
- '3.[89].[0-9]+'
13+
- '[4-9].[0-9]'
14+
- '[4-9].[0-9].[0-9]+'
1415
pull_request:
1516
branches:
1617
- trunk

.github/workflows/local-docker-environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Local Docker Environment
22

33
on:
4+
# Local Docker environment testing was introduced in WordPress 6.8.
45
push:
56
branches:
67
- trunk

.github/workflows/performance.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
name: Performance Tests
22

33
on:
4+
# Performance testing was introduced in WordPress 6.2.
45
push:
56
branches:
67
- trunk
78
- '6.[2-9]'
89
- '[7-9].[0-9]'
910
tags:
10-
- '[0-9]+.[0-9]'
11-
- '[0-9]+.[0-9].[0-9]+'
12-
- '![45].[0-9].[0-9]+'
13-
- '!6.[01].[0-9]+'
11+
- '6.[2-9]'
12+
- '6.[2-9].[0-9]+'
13+
- '[7-9].[0-9]'
14+
- '[7-9].[0-9].[0-9]+'
1415
pull_request:
1516
branches:
1617
- trunk

.github/workflows/php-compatibility.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ on:
88
- '5.[5-9]'
99
- '[6-9].[0-9]'
1010
tags:
11-
- '[0-9]+.[0-9]'
12-
- '[0-9]+.[0-9].[0-9]+'
13-
- '![34].[0-9].[0-9]+'
14-
- '!5.[0-4].[0-9]+'
11+
- '5.[5-9]'
12+
- '5.[5-9].[0-9]+'
13+
- '[6-9].[0-9]'
14+
- '[6-9].[0-9].[0-9]+'
1515
pull_request:
1616
branches:
1717
- trunk

.github/workflows/phpunit-tests.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ jobs:
211211
os: [ ubuntu-24.04 ]
212212
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
213213
db-type: [ 'mariadb' ]
214-
db-version: [ '5.5', '10.3', '10.4', '10.5', '10.6', '10.11', '11.4', '11.8' ]
214+
db-version: [ '5.5', '10.3', '10.5', '10.6', '10.11', '11.4', '11.8' ]
215215
multisite: [ false, true ]
216216
memcached: [ false ]
217217

@@ -222,9 +222,6 @@ jobs:
222222
- event: pull_request
223223
php: '7.2'
224224
db-version: '10.3'
225-
- event: pull_request
226-
php: '7.2'
227-
db-version: '10.4'
228225
- event: pull_request
229226
php: '7.2'
230227
db-version: '10.5'
@@ -243,9 +240,6 @@ jobs:
243240
- event: pull_request
244241
php: '7.3'
245242
db-version: '5.5'
246-
- event: pull_request
247-
php: '7.3'
248-
db-version: '10.4'
249243
- event: pull_request
250244
php: '7.3'
251245
db-version: '10.5'
@@ -288,9 +282,6 @@ jobs:
288282
- event: pull_request
289283
php: '8.0'
290284
db-version: '10.3'
291-
- event: pull_request
292-
php: '8.0'
293-
db-version: '10.4'
294285
- event: pull_request
295286
php: '8.0'
296287
db-version: '10.6'
@@ -309,9 +300,6 @@ jobs:
309300
- event: pull_request
310301
php: '8.1'
311302
db-version: '10.3'
312-
- event: pull_request
313-
php: '8.1'
314-
db-version: '10.4'
315303
- event: pull_request
316304
php: '8.1'
317305
db-version: '10.5'
@@ -330,9 +318,6 @@ jobs:
330318
- event: pull_request
331319
php: '8.2'
332320
db-version: '10.3'
333-
- event: pull_request
334-
php: '8.2'
335-
db-version: '10.4'
336321
- event: pull_request
337322
php: '8.2'
338323
db-version: '10.5'
@@ -351,9 +336,6 @@ jobs:
351336
- event: pull_request
352337
php: '8.3'
353338
db-version: '10.3'
354-
- event: pull_request
355-
php: '8.3'
356-
db-version: '10.4'
357339
- event: pull_request
358340
php: '8.3'
359341
db-version: '10.5'
@@ -372,9 +354,6 @@ jobs:
372354
- event: pull_request
373355
php: '8.4'
374356
db-version: '10.3'
375-
- event: pull_request
376-
php: '8.4'
377-
db-version: '10.4'
378357
- event: pull_request
379358
php: '8.4'
380359
db-version: '10.5'
@@ -393,9 +372,6 @@ jobs:
393372
- event: pull_request
394373
php: '8.5'
395374
db-version: '10.3'
396-
- event: pull_request
397-
php: '8.5'
398-
db-version: '10.4'
399375
- event: pull_request
400376
php: '8.5'
401377
db-version: '10.5'

.github/workflows/pull-request-comments.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,20 @@ jobs:
130130
const fs = require( 'fs' );
131131
const issue_number = Number( fs.readFileSync( './NR' ) );
132132
133+
core.info( `Checking pull request #${issue_number}.` );
134+
135+
// Confirm that the pull request is still open before leaving a comment.
136+
const pr = await github.rest.pulls.get({
137+
owner: context.repo.owner,
138+
repo: context.repo.repo,
139+
pull_number: issue_number,
140+
});
141+
142+
if ( pr.data.state !== 'open' ) {
143+
core.info( 'The pull request has been closed. No comment will be left.' );
144+
return;
145+
}
146+
133147
// Comments are only added after the first successful build. Check for the presence of a comment and bail early.
134148
const commentInfo = {
135149
owner: context.repo.owner,
@@ -141,6 +155,7 @@ jobs:
141155
142156
for ( const currentComment of comments ) {
143157
if ( currentComment.user.type === 'Bot' && currentComment.body.includes( 'Test using WordPress Playground' ) ) {
158+
core.info( 'A comment with instructions to test within a Playground instance already exists.' );
144159
return;
145160
}
146161
};

.github/workflows/reusable-cleanup-pull-requests.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,36 @@ jobs:
5454
5555
for (const ticket of fixedList) {
5656
const tracTicketUrl = `https://core.trac.wordpress.org/ticket/${ticket}`;
57-
const corePrefix = `Core-${ticket}`;
57+
const corePrefix = `core-${ticket}`;
5858
5959
const query = `
6060
query($searchQuery: String!) {
6161
search(query: $searchQuery, type: ISSUE_ADVANCED, first: 20) {
6262
nodes {
6363
... on PullRequest {
6464
number
65-
state
65+
bodyText
6666
}
6767
}
6868
}
6969
}
7070
`;
7171
72-
const searchQuery = `repo:${context.repo.owner}/${context.repo.repo} is:pr is:open in:body ( "${tracTicketUrl}" OR "${corePrefix}" )`;
72+
const searchQuery = `repo:${context.repo.owner}/${context.repo.repo} is:pr is:open ( "${tracTicketUrl}" OR "${corePrefix}" )`;
7373
7474
const result = await github.graphql(query, {
7575
searchQuery,
7676
});
7777
78-
prNumbers.push(...result.search.nodes.map(pr => pr.number));
78+
// Since search queries will match anywhere for any activity on a pull request, the body specifically needs to be manually checked.
79+
const matchingPRs = result.search.nodes
80+
.filter(pr => {
81+
const bodyLower = pr.bodyText.toLowerCase();
82+
83+
return bodyLower.includes(tracTicketUrl.toLowerCase()) || bodyLower.includes(corePrefix.toLowerCase());
84+
}).map(pr => pr.number);
85+
86+
prNumbers.push(...matchingPRs);
7987
}
8088
8189
return prNumbers;

0 commit comments

Comments
 (0)