Script that automatically converts JIRA ticket IDs in GitHub PR titles into clickable links.
- Detects JIRA ticket IDs (e.g., PROJ-123) in PR titles
- Converts them to clickable links pointing to your JIRA instance
- Updates dynamically when navigating between PRs
- Configurable JIRA domain
Use these extensions to run the script:
- Tampermonkey
- Javascript Injector
- Create directory with:
manifest.json
:
{
"manifest_version": 3,
"name": "GitHub JIRA Ticket Linker",
"version": "1.0",
"description": "Converts JIRA tickets in GitHub PR titles to clickable links",
"permissions": [
"activeTab"
],
"content_scripts": [
{
"matches": ["https://github.com/*"],
"js": ["content.js"]
}
]
}
- Add
content.js
with the script code - Load unpacked in Chrome extensions page
Modify JIRA domain:
new GithubJiraTicket('https://your-domain.atlassian.net/browse/');
Set isDebug: true
in constructor for console logging.