From 853cbd99b832ac81bded15f18fbf791c2b09253d Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 25 Feb 2022 11:00:16 -0500 Subject: [PATCH] build: increase max ops for stale feature action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set the limit to match the number used in the close stalled action. Required as not all eligeable stale features are being processed. Signed-off-by: Michael Dawson PR-URL: https://github.com/nodejs/node/pull/42130 Reviewed-By: Mestery Reviewed-By: Tobias Nießen Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Michaël Zasso Reviewed-By: Darshan Sen --- .github/workflows/close-stale-feature-requests.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/close-stale-feature-requests.yml b/.github/workflows/close-stale-feature-requests.yml index bb0efd38ae48f6..8147806039e33e 100644 --- a/.github/workflows/close-stale-feature-requests.yml +++ b/.github/workflows/close-stale-feature-requests.yml @@ -1,9 +1,12 @@ name: Close stale feature requests on: workflow_dispatch: - schedule: - # Run every day at 1:00 AM UTC. - - cron: 0 1 * * * + inputs: + daysBeforeStale: + description: Idle number of days before marking feature requests stale + required: true + default: 906 + type: number # yamllint disable rule:empty-lines env: @@ -36,7 +39,7 @@ jobs: - uses: actions/stale@v4 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 906 + days-before-stale: ${{ github.event.input.daysBeforeStale }} days-before-close: 30 stale-issue-label: stale close-issue-message: ${{ env.CLOSE_MESSAGE }} @@ -44,5 +47,5 @@ jobs: only-labels: feature request exempt-pr-labels: never-stale # max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits - operations-per-run: 30 + operations-per-run: 500 remove-stale-when-updated: true