Skip to content
Snippets Groups Projects
Commit c79f56c1 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(master-issue): add pending section

parent f511942a
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment