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);