diff --git a/lib/api/gitlab.js b/lib/api/gitlab.js index 62607e6983a7da1b18323fe6f9bf0bedaa4ffd98..8da2e4481e7c549fcb52663948cb8f8ba1106964 100644 --- a/lib/api/gitlab.js +++ b/lib/api/gitlab.js @@ -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}`, {