mirror of https://github.com/harness/drone.git
fix: [code-1991]: fix commit message (#2104)
parent
b005db9920
commit
6ebf2a9bbc
|
@ -293,7 +293,7 @@ function renderPullRequestLinkFromCommitMessage(
|
||||||
const match = message.match(/\(#\d+\)(\n|$)/)
|
const match = message.match(/\(#\d+\)(\n|$)/)
|
||||||
if (match?.length) {
|
if (match?.length) {
|
||||||
message = message.replace(match[0], '({URL})')
|
message = message.replace(match[0], '({URL})')
|
||||||
const pullRequestId = match[0].replace('(#', '').replace(')', '')
|
const pullRequestId = match[0].replace('(#', '').replace(')', '').replace('\n', '')
|
||||||
message = (
|
message = (
|
||||||
<StringSubstitute
|
<StringSubstitute
|
||||||
str={message}
|
str={message}
|
||||||
|
@ -311,6 +311,5 @@ function renderPullRequestLinkFromCommitMessage(
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return message
|
return message
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue