feat: workaround gitlab hyperlinking bug (#967)

Add space before closing `</h4>` to prevent unintential hyperlinking on GitLab.

Closes #954
pull/970/head v9.83.0
Rhys Arkins 2017-10-17 14:37:57 +02:00 committed by GitHub
parent 2b6077b6f6
commit a84bc2c3ed
1 changed files with 2 additions and 0 deletions

View File

@ -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}`, {