[JENKINS-65935] GitHub plugin invalid issue forwarding
If you close an issue or pull request via a commit message on GitHub (see GitHub linking issues for a full list of messages supported), the link created used at the "Changes" tab invalid.
It uses the following pattern: https://github.com/
The appended /find is out of place and will lead to a 404 on GitHub, removing it makes the link valid again.
I attached a screenshot, clicking on "Closes #..." will lead to the invalid URL described above. Making it valid requires removing the /find at the end.
Originally reported by jthomas, imported from: GitHub plugin invalid issue forwarding
- assignee:
lanwen
- status: Open
- priority: Minor
- component(s): github-plugin
- label(s): core, github-plugin, plugin
- resolution: Unresolved
- votes: 0
- watchers: 3
- imported: 2025-12-08
Raw content of original issue
If you close an issue or pull request via a commit message on GitHub (see GitHub linking issues for a full list of messages supported), the link created used at the "Changes" tab invalid. It uses the following pattern: https://github.com/<org|user>/<repo>/issues/<issue id>/find The appended /find is out of place and will lead to a 404 on GitHub, removing it makes the link valid again. I attached a screenshot, clicking on "Closes #..." will lead to the invalid URL described above. Making it valid requires removing the /find at the end.
environment
Jenkins 2.293<br/>
GitHub plugin 1.33.1
1 attachment
kon:
- Original comment link
Raw content of original comment:
The /find suffix seems to come from GithubLinkAnnotator.java, where it has been since 2009. If it is removed, then GithubLinkAnnotatorTest.java should be updated as well.
The /find suffix seems to come from GithubLinkAnnotator.java, where it has been since 2009. If it is removed, then GithubLinkAnnotatorTest.java should be updated as well.
notmyfault:
- Original comment link
Raw content of original comment:
This may also be expanded to the keywords closing issues.
This may also be expanded to the keywords closing issues.
