From c79f56c1ddc47235ecc1a6a8b6d90fcf8219e404 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 26 Aug 2019 07:58:08 +0200 Subject: [PATCH] fix(master-issue): add pending section --- lib/workers/repository/master-issue.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/workers/repository/master-issue.js b/lib/workers/repository/master-issue.js index 27c1001df7..1e5d060858 100644 --- a/lib/workers/repository/master-issue.js +++ b/lib/workers/repository/master-issue.js @@ -131,7 +131,17 @@ async function ensureMasterIssue(config, branches) { } issueBody += '\n'; } + const prPending = branches.filter(branch => branch.res === 'pending'); + if (prPending.length) { + issueBody += '## Pending Status Checks\n\n'; + issueBody += `These updates await pending status checks. To force their creation now, check the box below.\n\n`; + for (const branch of prPending) { + issueBody += getListItem(branch, 'approvePr'); + } + issueBody += '\n'; + } const otherRes = [ + 'pending', 'needs-approval', 'needs-pr-approval', 'not-scheduled', -- GitLab