We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8483fcf commit e8f27c4Copy full SHA for e8f27c4
1 file changed
scripts/pr-2-jira.js
@@ -1,7 +1,7 @@
1
// ==UserScript==
2
// @name PR-2-Jira: GitHub & Jira Integration
3
// @namespace https://github.com/scharinger/userscripts
4
-// @version 2.5
+// @version 2.6
5
// @description Seamlessly connect GitHub PRs to Jira with smart button placement and automatic link creation
6
// @author Tim Scharinger
7
// @match https://*/*/pull/*
@@ -227,7 +227,9 @@
227
return
228
}
229
console.log(`${PREFIX} starting Jira functionality`, { issueKey, prLink })
230
- addPRLink(issueKey, prLink)
+ const prNumber = prLink.match(/\/pull\/(\d+)/)?.[1]
231
+ const prTitle = prNumber ? `PR (#${prNumber})` : 'PR'
232
+ addPRLink(issueKey, prLink, prTitle)
233
234
235
async function addPRLink(
0 commit comments