Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Sep 16, 2020
1 parent 82624c1 commit 3302966
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/listStaleBranches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3302966

Please sign in to comment.