1const getNonSemverPatchPRs = async () => {
2 const allOpenPrs = await getAllOpenPRs();
3
4 return allOpenPrs.reduce(async (previousPromise, pr) => {
5 const collection = await previousPromise;
6 const allCommits = await getAllCommitsForaPR(pr.number);
7
8 const isNotSemverPatchPR = checkCommitMessageForPatch(allCommits[0]);
9
10 if (isNotSemverPatchPR) {
11 collection.push(pr);
12 }
13
14 return collection;
15 }, Promise.resolve([]));
16};
17