From 555fd332078bb7bfb5182fb94ff394bdf1d539da Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Fri, 21 Sep 2018 11:48:13 +0200 Subject: [PATCH] fix(bitbucket): limit pr body to 50k chars --- lib/platform/bitbucket/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/platform/bitbucket/index.js b/lib/platform/bitbucket/index.js index 0b649888d6..2d59f527ac 100644 --- a/lib/platform/bitbucket/index.js +++ b/lib/platform/bitbucket/index.js @@ -473,7 +473,10 @@ async function mergePr(prNo, branchName) { function getPrBody(input) { // Remove any HTML we use - return input.replace(/<\/?summary>/g, '**').replace(/<\/?details>/g, ''); + return input + .replace(/<\/?summary>/g, '**') + .replace(/<\/?details>/g, '') + .substring(0, 50000); } // Return the commit SHA for a branch -- GitLab