mirror of
https://github.com/nodejs/node.git
synced 2024-11-25 08:19:38 +01:00
eef13046b1
PR-URL: https://github.com/nodejs/node/pull/47357 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
39 lines
1.5 KiB
YAML
39 lines
1.5 KiB
YAML
name: Close stalled issues and PRs
|
|
on:
|
|
schedule:
|
|
- cron: 0 0 * * *
|
|
|
|
env:
|
|
CLOSE_MESSAGE: >
|
|
Closing this because it has stalled. Feel free to reopen if this issue/PR
|
|
is still relevant, or to ping the collaborator who labelled it stalled if
|
|
you have any questions.
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
stale:
|
|
permissions:
|
|
issues: write # for actions/stale to close stale issues
|
|
pull-requests: write # for actions/stale to close stale PRs
|
|
if: github.repository == 'nodejs/node'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
days-before-close: 30
|
|
stale-pr-label: stalled
|
|
stale-issue-label: stalled
|
|
close-issue-message: ${{ env.CLOSE_MESSAGE }}
|
|
close-pr-message: ${{ env.CLOSE_MESSAGE }}
|
|
# used to filter issues to check whether or not should be closed, avoids hitting maximum operations allowed if needing to paginate through all open issues
|
|
only-labels: stalled
|
|
# max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits
|
|
operations-per-run: 500
|
|
# deactivates automatic removal of stalled label if issue gets any activity
|
|
remove-stale-when-updated: false
|
|
# deactivates automatic stale labelling as we prefer to do that manually
|
|
days-before-stale: -1
|