Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bherrmann2 committed Jul 9, 2024
1 parent 59e9ba4 commit 63faa2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/remove-pr-from-merge-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const removePrFromMergeQueue = async ({ seconds }: RemovePrFromMergeQueue
...context.repo
});
const mostRecentStatus = orderBy(data, 'created_at', 'desc')[0];
const noPendingStatus = data.find(status => status.state !== 'pending')
const noPendingStatus = data.find(status => status.state !== 'pending');
if (noPendingStatus && mostRecentStatus && timestampIsStale(mostRecentStatus.created_at, seconds)) {
core.info('Removing stale PR from first queued position...');
return Promise.all([removeLabelIfExists(READY_FOR_MERGE_PR_LABEL, number), removeLabelIfExists(FIRST_QUEUED_PR_LABEL, number)]);
Expand Down

0 comments on commit 63faa2c

Please sign in to comment.