Make WordPress Core

Changeset 58939


Ignore:
Timestamp:
08/26/2024 11:14:06 PM (16 months ago)
Author:
peterwilsoncc
Message:

Build/test tools: Remove prompt for trac ticket referenced with ticket: 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 ticket: prefix, eg ticket:61865.

The WordPress/WordPress-Develop repository is configured to automatically convert the text to a trac ticket link.

Props dd32, peterwilsoncc.
Fixes #61865.

File:
1 edited

Legend:

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

    r58901 r58939  
    196196            const prTitle = pr.title ?? '';
    197197
    198             const tracTicketRegex = new RegExp( '(https?://core.trac.wordpress.org/ticket/|Core-)([0-9]+)', 'g' );
     198            const tracTicketRegex = new RegExp( '(https?://core.trac.wordpress.org/ticket/|Core-|ticket:)([0-9]+)', 'g' );
    199199            const tracTicketMatches = prBody.match( tracTicketRegex ) || prTitle.match( tracTicketRegex );
    200200
Note: See TracChangeset for help on using the changeset viewer.