You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If no ticket/issue ID is in the title, it will extract the ID from the branch or body and update the title for you. It will fail the check if no ticket ID is found anywhere.
This doesn't work properly when you use a full URL link with a :repo or :owner that has a number in its name.
Important: The repo or owner must have a number in the name for this bug to occur.
Add the following to .github/workflows/pull-request-linting.yml and replace :repo and :owner with your actual repository that has a number in the name. i.e. :repo could be foo-22222-bar
Open a pull request and in the body put (replace :owner and :repo):
Some body text
Closes https://github.com/:owner/:repo/issues/1
Wait until the workflow finishes and the title will not have #1 in the title but instead will have the first number it finds in the repo name or the owners name i.e. if the repo is named foo-22222-bar it will always have #22222 in the title
The text was updated successfully, but these errors were encountered:
Description
This doesn't work properly when you use a full URL link with a :repo or :owner that has a number in its name.
Here is an example repo that produces the issue:
watadarkstar/pull-request-ticket-222-check-bug#4
Notice how the repository name has a number in the name. That is key to get this bug to occur.
Seems like the issue is found on this line of code:
ticket-check-action/src/index.ts
Line 8 in 28ebae7
Steps to reproduce
Important: The repo or owner must have a number in the name for this bug to occur.
.github/workflows/pull-request-linting.yml
and replace :repo and :owner with your actual repository that has a number in the name. i.e. :repo could be foo-22222-bar#1
in the title but instead will have the first number it finds in the repo name or the owners name i.e. if the repo is namedfoo-22222-bar
it will always have #22222 in the titleThe text was updated successfully, but these errors were encountered: