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

fix(master issue): check branch.res first

parent 61b7d3d1
No related branches found
Tags 32.38.0
No related merge requests found
......@@ -65,8 +65,8 @@ async function ensureMasterIssue(config, branches) {
}
issueBody += '\n';
}
const rateLimited = branches.filter(branch =>
branch.res.endsWith('pr-hourly-limit-reached')
const rateLimited = branches.filter(
branch => branch.res && branch.res.endsWith('pr-hourly-limit-reached')
);
if (rateLimited.length) {
issueBody += '## Rate Limited\n\n';
......@@ -77,7 +77,9 @@ async function ensureMasterIssue(config, branches) {
}
issueBody += '\n';
}
const errorList = branches.filter(branch => branch.res.endsWith('error'));
const errorList = branches.filter(
branch => branch.res && branch.res.endsWith('error')
);
if (errorList.length) {
issueBody += '## Errored\n\n';
issueBody +=
......@@ -120,8 +122,8 @@ async function ensureMasterIssue(config, branches) {
}
issueBody += '\n';
}
const alreadyExisted = branches.filter(branch =>
branch.res.endsWith('already-existed')
const alreadyExisted = branches.filter(
branch => branch.res && branch.res.endsWith('already-existed')
);
if (alreadyExisted.length) {
issueBody += '## Closed/Ignored\n\n';
......
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