From 3302966e3031e4d6f6917841354b978e6cee118c Mon Sep 17 00:00:00 2001 From: Christian Dupuis Date: Wed, 16 Sep 2020 21:08:06 +0200 Subject: [PATCH] Polish --- lib/listStaleBranches.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/listStaleBranches.ts b/lib/listStaleBranches.ts index 1b39e3c..8197763 100644 --- a/lib/listStaleBranches.ts +++ b/lib/listStaleBranches.ts @@ -174,6 +174,7 @@ export async function listStaleBranchesOnRepo( repo: repo.name, }); if (prs.PullRequest?.[0]) { + // Get latest PR from all possible PRs against same branch name const pr = _.orderBy(prs.PullRequest, "number", "desc")[0]; staleBranches.push({ branch: branch.name,