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