mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
Bumps [actions/stale](https://github.com/actions/stale) from 10.3.0 to 11.0.0. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899...4391f3da665fdf50b6810c1a66712fb9ba21aa93) --- updated-dependencies: - dependency-name: actions/stale dependency-version: 11.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> PR-URL: https://github.com/nodejs/node/pull/64935 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
52 lines
1.9 KiB
YAML
52 lines
1.9 KiB
YAML
name: Close stale
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# Run every day at 1:00 AM UTC.
|
|
- cron: 0 1 * * *
|
|
|
|
# yamllint disable rule:empty-lines
|
|
env:
|
|
CLOSE_MESSAGE: >
|
|
This {0} has been automatically closed after 30 days of inactivity
|
|
following its stale status (no activity for a total of 120 days).
|
|
|
|
If this is still relevant, feel free to reopen it or leave a comment
|
|
with additional details so we can continue the discussion.
|
|
|
|
WARN_MESSAGE: >
|
|
This {0} has been marked as stale due to 90 days of inactivity.
|
|
|
|
It will be automatically closed in 30 days if no further activity occurs.
|
|
If this is still relevant, please leave a comment or update it to keep it open.
|
|
# yamllint enable
|
|
|
|
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
|
|
actions: write # for actions/stale to cache stale saved state
|
|
if: github.repository == 'nodejs/node'
|
|
runs-on: ubuntu-slim
|
|
steps:
|
|
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
days-before-stale: 90
|
|
days-before-close: 30
|
|
stale-issue-label: stale
|
|
exempt-issue-labels: never-stale, confirmed-bug
|
|
close-issue-message: ${{ format(env.CLOSE_MESSAGE, 'issue') }}
|
|
stale-issue-message: ${{ format(env.WARN_MESSAGE, 'issue') }}
|
|
stale-pr-label: stale
|
|
exempt-pr-labels: never-stale
|
|
close-pr-message: ${{ format(env.CLOSE_MESSAGE, 'pull request') }}
|
|
stale-pr-message: ${{ format(env.WARN_MESSAGE, 'pull request') }}
|
|
# max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits
|
|
operations-per-run: 2500
|
|
remove-stale-when-updated: true
|