返回 CodeWhale
stale.yml
根目录 / .github / workflows / stale.yml
1 name: Close stale issues
2
3 on:
4 schedule:
5 - cron: '17 5 * * *' # daily, off-peak
6 workflow_dispatch: {}
7
8 permissions:
9 issues: write
10 pull-requests: write
11
12 jobs:
13 stale:
14 runs-on: ubuntu-latest
15 steps:
16 # Pinned from actions/stale@v10; update deliberately when refreshing the policy.
17 - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93
18 with:
19 days-before-stale: 14
20 days-before-close: 7
21 stale-issue-message: >
22 This issue has been inactive for 14 days while waiting on
23 additional information. It will close automatically in 7 days
24 unless someone responds. If you still need help, drop a
25 comment with the requested details and a maintainer can
26 reopen.
27 close-issue-message: >
28 Closing for inactivity. Feel free to comment to reopen if
29 you can share the requested information.
30 stale-issue-label: 'stale'
31 only-labels: 'needs-info'
32 exempt-issue-labels: 'pinned,keep-open,release-blocker,security'
33 # Don't touch PRs — `actions/stale` defaults can be aggressive
34 # there. We only want it for `needs-info` issues.
35 days-before-pr-stale: -1
36 days-before-pr-close: -1
37 operations-per-run: 60
38
38 lines YAML