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

fix: edited PRs should not be “Open” in master list

parent e1f9676b
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment