Skip to content

Commit efee925

Browse files
committed
Build/test tools: Remove prompt for trac ticket referenced with Core- prefix.
Prevents the GitHub bot from posting a comment on pull requests requesting a trac ticket link if the ticket description includes a link via the Core- prefix, eg Core-61865. The WordPress/WordPress-Develop repository is configured to automatically convert the text to a trac ticket link. Props martinkrcho, peterwilsoncc. Fixes #61865. git-svn-id: https://develop.svn.wordpress.org/trunk@58901 602fd350-edb4-49c9-b593-d223f7449a82
1 parent ed53fed commit efee925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ jobs:
195195
const prBody = pr.body ?? '';
196196
const prTitle = pr.title ?? '';
197197
198-
const tracTicketRegex = new RegExp( 'https?://core.trac.wordpress.org/ticket/([0-9]+)', 'g' );
198+
const tracTicketRegex = new RegExp( '(https?://core.trac.wordpress.org/ticket/|Core-)([0-9]+)', 'g' );
199199
const tracTicketMatches = prBody.match( tracTicketRegex ) || prTitle.match( tracTicketRegex );
200200
201201
if ( ! tracTicketMatches ) {

0 commit comments

Comments
 (0)