mirror of https://github.com/renovatebot/renovate
feat: workaround gitlab hyperlinking bug (#967)
Add space before closing `</h4>` to prevent unintential hyperlinking on GitLab. Closes #954pull/970/head v9.83.0
parent
2b6077b6f6
commit
a84bc2c3ed
|
@ -372,6 +372,7 @@ async function createPr(branchName, title, body, useDefaultBranch) {
|
|||
: config.baseBranch;
|
||||
logger.debug(`Creating Merge Request: ${title}`);
|
||||
const description = body
|
||||
.replace('</h4>', ' </h4>') // See #954
|
||||
.replace(/Pull Request/g, 'Merge Request')
|
||||
.replace(/PR/g, 'MR');
|
||||
const res = await get.post(`projects/${config.repoName}/merge_requests`, {
|
||||
|
@ -416,6 +417,7 @@ async function getPr(prNo) {
|
|||
|
||||
async function updatePr(prNo, title, body) {
|
||||
const description = body
|
||||
.replace('</h4>', ' </h4>') // See #954
|
||||
.replace(/Pull Request/g, 'Merge Request')
|
||||
.replace(/PR/g, 'MR');
|
||||
await get.put(`projects/${config.repoName}/merge_requests/${prNo}`, {
|
||||
|
|
Loading…
Reference in New Issue