From 68f33875bef1fb86b54bb8b8368ad4e5a5c89051 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Thu, 4 Oct 2018 13:54:28 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20edited=20PRs=20should=20not=20be=20?= =?UTF-8?q?=E2=80=9COpen=E2=80=9D=20in=20master=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/workers/repository/master-issue.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/workers/repository/master-issue.js b/lib/workers/repository/master-issue.js index f52cfafd73..27e9f7eaf1 100644 --- a/lib/workers/repository/master-issue.js +++ b/lib/workers/repository/master-issue.js @@ -87,6 +87,16 @@ async function ensureMasterIssue(config, branches) { } issueBody += '\n'; } + const prEdited = branches.filter(branch => branch.res === 'pr-edited'); + if (prEdited.length) { + issueBody += '## Edited/Blocked\n\n'; + issueBody += + 'These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, check the box below.\n\n'; + for (const branch of prEdited) { + issueBody += getListItem(branch, 'reset'); + } + issueBody += '\n'; + } const otherRes = [ 'needs-approval', 'not-scheduled', @@ -94,6 +104,7 @@ async function ensureMasterIssue(config, branches) { 'already-existed', 'error', 'automerged', + 'pr-edited', ]; const inProgress = branches.filter(branch => !otherRes.includes(branch.res)); if (inProgress.length) { -- GitLab