Make WordPress Core

Opened 5 weeks ago

Closed 3 weeks ago

Last modified 3 weeks ago

#61865 closed defect (bug) (fixed)

GH Action requesting ticket number doesn't recognize Core-#####

Reported by: peterwilsoncc's profile peterwilsoncc Owned by: peterwilsoncc's profile peterwilsoncc
Milestone: 6.7 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch has-unit-tests
Focuses: Cc:

Description

The WordPress-Develop repository is configured to accept ticket in the form Core-##### on pull requests. These strings will be automatically linked to the ticket and picked up by the PR bot on trac.

As an example, view this pull request referencing Core-61864.

The GitHub action that adds a comment requesting PR descriptions include a link to tickets does not recognize these as links and will drop a comment requesting it be added.

Change History (24)

This ticket was mentioned in PR #7181 on WordPress/wordpress-develop by @peterwilsoncc.


5 weeks ago
#1

  • Keywords has-patch added

Modifies the regex in the GitHub action commenting with a request to link to trac to recognize the Core- prefix.

Trac ticket: Core-61865

This ticket was mentioned in PR #7181 on WordPress/wordpress-develop by @peterwilsoncc.


5 weeks ago
#2

Modifies the regex in the GitHub action commenting with a request to link to trac to recognize the Core- prefix.

.

This ticket was mentioned in PR #7181 on WordPress/wordpress-develop by @peterwilsoncc.


5 weeks ago
#3

Modifies the regex in the GitHub action commenting with a request to link to trac to recognize the Core- prefix.

.

This ticket was mentioned in PR #7181 on WordPress/wordpress-develop by @peterwilsoncc.


5 weeks ago
#4

Modifies the regex in the GitHub action commenting with a request to link to trac to recognize the Core- prefix.

This ticket was mentioned in PR #7181 on WordPress/wordpress-develop by @peterwilsoncc.


5 weeks ago
#5

Modifies the regex in the GitHub action commenting with a request to link to a trac ticket to recognize the Core- prefix.

This ticket was mentioned in PR #7181 on WordPress/wordpress-develop by @peterwilsoncc.


5 weeks ago
#6

Modifies the regex in the GitHub action commenting with a request to link to a trac ticket to recognize the Core- prefix.

This ticket was mentioned in PR #7181 on WordPress/wordpress-develop by @peterwilsoncc.


5 weeks ago
#7

Modifies the regex in the GitHub action commenting with a request to link to a trac ticket to recognize the Core- prefix.

This ticket was mentioned in PR #7181 on WordPress/wordpress-develop by @peterwilsoncc.


5 weeks ago
#8

Modifies the regex in the GitHub action commenting with a request to link to a trac ticket to recognize the Core- prefix.

This ticket was mentioned in PR #7181 on WordPress/wordpress-develop by @peterwilsoncc.


5 weeks ago
#9

Modifies the regex in the GitHub action commenting with a request to link to a trac ticket to recognize the Core- prefix.

This ticket was mentioned in PR #7182 on WordPress/wordpress-develop by @peterwilsoncc.


5 weeks ago
#10

Core-61865

#11 @peterwilsoncc
5 weeks ago

I suspect the bot isn't picking up the issue number in the linked pull request due to the use of pull_request_target rather than pull_request.

@desrosj I suspect it will need a yolo commit and the crossing of fingers but it would be good to get your view once you return.

@peterwilsoncc commented on PR #7182:


5 weeks ago
#12

@martinkrcho I suspect it's because the action uses pull_request_target rather than pull_request for the action so it's running the version in trunk rather than this branch.

I'm not sure of a way to force this short of a yolo commit and testing it out.

I tested it on my own fork with the pull_request event and it seemed to work but it would be good to get a logic check.

#13 @peterwilsoncc
5 weeks ago

  • Milestone changed from Awaiting Review to 6.7

#14 @peterwilsoncc
5 weeks ago

  • Owner set to peterwilsoncc
  • Resolution set to fixed
  • Status changed from new to closed

In 58901:

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.

@peterwilsoncc commented on PR #7182:


5 weeks ago
#15

Merged r58901 / https://github.com/WordPress/wordpress-develop/commit/efee9258317fda297e11be7c5c418816fdd1f6bb

There are some security implications to consider, see https://runs-on.com/github-actions/pull-request-vs-pull-request-target/.

I'll need to check with someone but I think that's why it was changed at some point although I could be mistaken.

This ticket was mentioned in PR #7199 on WordPress/wordpress-develop by @peterwilsoncc.


5 weeks ago
#16

  • Keywords has-unit-tests added

Core-61865

#18 @peterwilsoncc
3 weeks ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopening this to add ticket: as an accepted prefix, see [Meta13989]. @dd32 added the prefix to the accepted settings on WordPress-Develop yesterday.

This ticket was mentioned in PR #7242 on WordPress/wordpress-develop by @peterwilsoncc.


3 weeks ago
#19

Accepts ticket: as a prefix for linking to a trac ticket. This is also a permitted autolink reference.

https://github.com/user-attachments/assets/40b763c6-1204-4f7a-8467-63628842ba24

Trac ticket: ticket:61865

#20 @peterwilsoncc
3 weeks ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 58939:

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.

This ticket was mentioned in PR #7244 on WordPress/wordpress-develop by @peterwilsoncc.


3 weeks ago
#23

Core-61865

Note: See TracTickets for help on using tickets.