Skip to content

Commit

Permalink
build: increase max ops for stale feature action
Browse files Browse the repository at this point in the history
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 <mdawson@devrus.com>

PR-URL: nodejs#42130
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
mhdawson authored and danielleadams committed Apr 21, 2022
1 parent d73fadb commit a6de3c0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .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:
Expand Down Expand Up @@ -36,13 +39,13 @@ 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 }}
stale-issue-message: ${{ env.WARN_MESSAGE }}
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

0 comments on commit a6de3c0

Please sign in to comment.