From 41f8abc6b5b9450792728bd9d72e98650da8c741 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 26 May 2023 14:48:04 -0400 Subject: [PATCH] build: update action to close stale PRs My original plan of adding a lable to limit those initially process as outlined in https://github.com/nodejs/node/pull/48051 does not work I think because adding a lable updates the last update time. - Removing the need for the lable - Remove the cron scheduling so that it only runs when I run it manually - Fix the display name for the action as I missed updating that after cut and paste from existing action The plan will be to find stop dates that should only affect a reasonable number of PRs at a time and then run in batches using that instead. Signed-off-by: Michael Dawson PR-URL: https://github.com/nodejs/node/pull/48196 Reviewed-By: Mestery --- .github/workflows/close-stale-pull-requests.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/close-stale-pull-requests.yml b/.github/workflows/close-stale-pull-requests.yml index 05f1732f78df5d..b18cd5c37e69c4 100644 --- a/.github/workflows/close-stale-pull-requests.yml +++ b/.github/workflows/close-stale-pull-requests.yml @@ -1,4 +1,4 @@ -name: Close stale feature requests +name: Close stale pull requests on: workflow_dispatch: inputs: @@ -6,9 +6,6 @@ on: description: stop processing PRs after this date required: false type: string - schedule: - # Run every day at 1:00 AM UTC. - - cron: 0 1 * * * # yamllint disable rule:empty-lines env: @@ -51,7 +48,6 @@ jobs: end-date: ${{ env.END_DATE }} days-before-issue-stale: -1 days-before-issue-close: -1 - only-labels: test-stale-pr days-before-stale: 150 days-before-close: 30 stale-issue-label: stale