From 250106457d570d5dcc939894508fad7841aebe66 Mon Sep 17 00:00:00 2001 From: William Patton Date: Thu, 11 Jan 2024 21:20:11 -0800 Subject: [PATCH] fix typo in pr bot --- .github/workflows/close-inactive-prs.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/close-inactive-prs.yaml b/.github/workflows/close-inactive-prs.yaml index 4e2351a8..f28e702d 100644 --- a/.github/workflows/close-inactive-prs.yaml +++ b/.github/workflows/close-inactive-prs.yaml @@ -17,9 +17,9 @@ jobs: const repo = context.repo.repo; const prs = await github.rest.pulls.list({ owner, repo, state: 'open' }); const thirtyDaysAgo = new Date(); - thirtyDaysAgo.setMinutes(thirtyDaysAgo.getDate() - 28); + thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 28); const oneWeekAgo = new Date(); - oneWeekAgo.setMinutes(oneWeekAgo.getDate() - 7); + oneWeekAgo.setDate(oneWeekAgo.getDate() - 7); for (const pr of prs.data) { const updatedAt = new Date(pr.updated_at);