From edda14d5531059efe2359c48974ce15c74fb0e5f Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Mon, 5 Apr 2021 08:37:28 +0100 Subject: [PATCH] Update index.js --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 4ca7a67e..d67295d1 100644 --- a/index.js +++ b/index.js @@ -131,6 +131,7 @@ async function mergeIfLGTMAndHasAccess() { // Don't merge red PRs const statusInfo = await octokit.repos.listCommitStatusesForRef({ ...thisRepo, ref: prInfo.data.head.sha }) const failedStatus = statusInfo.data + // Check only the most recent for a set of duplicated statuses .filter( (thing, index, self) => index === self.findIndex((t) => t.target_url === thing.target_url)