Make WordPress Core

Changeset 58901


Ignore:
Timestamp:
08/15/2024 04:56:24 AM (5 months ago)
Author:
peterwilsoncc
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/pull-request-comments.yml

    r58092 r58901  
    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
Note: See TracChangeset for help on using the changeset viewer.