-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (43 loc) · 1.58 KB
/
stale.yaml
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
47
48
# This workflow warns and then closes issues and PRs with no recent activity.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: 'Mark stale issues and pull requests'
on:
schedule:
- cron: '23 11 * * 1-5'
# Declare default permissions as read only.
permissions:
contents: read
jobs:
stale:
runs-on: ubuntu-22.04
permissions:
issues: write
pull-requests: write
steps:
- name: 'Harden runner'
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
- name: 'Stale issue/PR check'
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
close-issue-label: 'wontfix'
close-issue-message: 'Closed due to lack of activity'
close-pr-label: 'wontfix'
close-pr-message: 'Closed due to lack of activity'
days-before-close: 14 # stale+close+13 <= artifact retention (90 max)
days-before-stale: 63
delete-branch: true # branches can almost always be reopened
exempt-all-assignees: true
exempt-all-milestones: true
exempt-issue-labels: 'bug,enhancement'
stale-issue-label: 'inactive'
stale-issue-message: 'This will be closed if there’s no activity soon'
stale-pr-label: 'inactive'
stale-pr-message: 'This PR will be closed if there’s no activity soon'