-
Notifications
You must be signed in to change notification settings - Fork 28.3k
46 lines (43 loc) · 1.47 KB
/
close-stale.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Close stale pull requests
on:
workflow_dispatch:
schedule:
# Run every day at 1:00 AM UTC.
- cron: 0 1 * * *
# yamllint disable rule:empty-lines
env:
CLOSE_MESSAGE: >
There hasn't been any activity on this issue/PR for over 8 months.
We appreciate your contribution, but since there hasn't been any
progress recently, we're closing it. If you disagree with this
decision, please leave a comment.
WARN_MESSAGE: >
There hasn't been any activity on this issue/PR for over 8 months.
We appreciate your contribution, but since there hasn't been any
progress recently, we're closing it in **30 days**. If you
disagree with this decision, please leave a comment.
# yamllint enable
permissions:
contents: read
issues: write
pull-requests: write
jobs:
stale:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 240
days-before-close: 30
close-issue-message: ${{ env.CLOSE_MESSAGE }}
stale-issue-message: ${{ env.WARN_MESSAGE }}
close-pr-message: ${{ env.CLOSE_MESSAGE }}
stale-pr-message: ${{ env.WARN_MESSAGE }}
exempt-issue-labels: never-stale
exempt-pr-labels: never-stale
stale-issue-label: stale
stale-pr-label: stale
operations-per-run: 500
remove-stale-when-updated: true