From 5beddbdb4c34393b520d50a15d4bb08acfcd18f3 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 25 Feb 2022 11:00:16 -0500 Subject: [PATCH 1/4] build: increase max ops for stale feature action 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 --- .github/workflows/close-stale-feature-requests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/close-stale-feature-requests.yml b/.github/workflows/close-stale-feature-requests.yml index bb0efd38ae48f6..373e800fb088dd 100644 --- a/.github/workflows/close-stale-feature-requests.yml +++ b/.github/workflows/close-stale-feature-requests.yml @@ -44,5 +44,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 From 59be530d97f1ce85a47dfbeee9c3c7e362189b18 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 25 Feb 2022 16:13:12 -0500 Subject: [PATCH 2/4] squash: address suggestions --- .github/workflows/close-stale-feature-requests.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/close-stale-feature-requests.yml b/.github/workflows/close-stale-feature-requests.yml index 373e800fb088dd..f4e52e56d1a548 100644 --- a/.github/workflows/close-stale-feature-requests.yml +++ b/.github/workflows/close-stale-feature-requests.yml @@ -1,9 +1,11 @@ name: Close stale feature requests on: workflow_dispatch: - schedule: - # Run every day at 1:00 AM UTC. - - cron: 0 1 * * * + 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 +38,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 }} From 849da39ab6387c4d3dc7ac92657ba80feff2aa75 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 25 Feb 2022 16:19:06 -0500 Subject: [PATCH 3/4] Update .github/workflows/close-stale-feature-requests.yml Co-authored-by: Mestery --- .github/workflows/close-stale-feature-requests.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/close-stale-feature-requests.yml b/.github/workflows/close-stale-feature-requests.yml index f4e52e56d1a548..c2fa96bbf7f069 100644 --- a/.github/workflows/close-stale-feature-requests.yml +++ b/.github/workflows/close-stale-feature-requests.yml @@ -1,11 +1,12 @@ name: Close stale feature requests on: workflow_dispatch: - daysBeforeStale: - description: Idle number of days before marking feature requests stale - required: true - default: 906 - type: number + inputs: + daysBeforeStale: + description: Idle number of days before marking feature requests stale + required: true + default: 906 + type: number # yamllint disable rule:empty-lines env: From 971f271e60a07f82e049c26d8be1485917b344eb Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 25 Feb 2022 17:29:26 -0500 Subject: [PATCH 4/4] Update .github/workflows/close-stale-feature-requests.yml Co-authored-by: Mohammed Keyvanzadeh --- .github/workflows/close-stale-feature-requests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/close-stale-feature-requests.yml b/.github/workflows/close-stale-feature-requests.yml index c2fa96bbf7f069..8147806039e33e 100644 --- a/.github/workflows/close-stale-feature-requests.yml +++ b/.github/workflows/close-stale-feature-requests.yml @@ -4,7 +4,7 @@ on: inputs: daysBeforeStale: description: Idle number of days before marking feature requests stale - required: true + required: true default: 906 type: number