#61865 closed defect (bug) (fixed)
GH Action requesting ticket number doesn't recognize Core-#####
| Reported by: | peterwilsoncc | Owned by: | peterwilsoncc |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.7 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
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.
2 years ago
#1
- Keywords has-patch added
This ticket was mentioned in PR #7181 on WordPress/wordpress-develop by @peterwilsoncc.
2 years 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.
2 years 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.
2 years 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.
2 years 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.
2 years 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.
2 years 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.
2 years 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.
2 years 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.
2 years ago
#10
Core-61865
#11
@
2 years 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:
2 years 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.
@peterwilsoncc commented on PR #7182:
2 years 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.
2 years ago
#16
- Keywords has-unit-tests added
Core-61865
@peterwilsoncc commented on PR #7199:
2 years ago
#17
#18
@
2 years ago
- Resolution fixed
- Status closed → 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.
2 years ago
#19
Accepts ticket: as a prefix for linking to a trac ticket. This is also a permitted autolink reference.
Trac ticket: ticket:61865
@peterwilsoncc commented on PR #7242:
2 years ago
#21
This ticket was mentioned in PR #7243 on WordPress/wordpress-develop by @peterwilsoncc.
2 years ago
#22
This ticket was mentioned in PR #7244 on WordPress/wordpress-develop by @peterwilsoncc.
2 years ago
#23
Core-61865
This ticket was mentioned in PR #7245 on WordPress/wordpress-develop by @peterwilsoncc.
2 years ago
#24
https://core.trac.wordpress.org/ticket/61865
One last test.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Modifies the regex in the GitHub action commenting with a request to link to trac to recognize the Core- prefix.
Trac ticket: Core-61865