1
1
# This file is synced from the `.github` repository, do not modify it directly.
2
- name : Triage issues
2
+ name : Manage stale issues
3
3
4
4
on :
5
5
push :
6
6
paths :
7
- - .github/workflows/triage -issues.yml
7
+ - .github/workflows/stale -issues.yml
8
8
branches-ignore :
9
9
- dependabot/**
10
10
schedule :
11
11
# Once every day at midnight UTC
12
12
- cron : " 0 0 * * *"
13
13
issue_comment :
14
14
15
- permissions :
16
- issues : write
17
- pull-requests : write
15
+ permissions : {}
16
+
17
+ defaults :
18
+ run :
19
+ shell : bash -xeuo pipefail {0}
18
20
19
21
concurrency :
20
- group : triage -issues
22
+ group : stale -issues
21
23
cancel-in-progress : ${{ github.event_name != 'issue_comment' }}
22
24
23
25
jobs :
24
26
stale :
25
27
if : >
26
- github.repository_owner == 'Homebrew ' && (
28
+ github.repository_owner == 'DomT4 ' && (
27
29
github.event_name != 'issue_comment' || (
28
30
contains(github.event.issue.labels.*.name, 'stale') ||
29
31
contains(github.event.pull_request.labels.*.name, 'stale')
30
32
)
31
33
)
32
34
runs-on : ubuntu-latest
35
+ permissions :
36
+ contents : write
37
+ issues : write
38
+ pull-requests : write
33
39
steps :
34
40
- name : Mark/Close Stale Issues and Pull Requests
35
- uses : actions/stale@v9
41
+ uses : actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
36
42
with :
37
43
repo-token : ${{ secrets.GITHUB_TOKEN }}
38
44
days-before-stale : 21
@@ -45,19 +51,24 @@ jobs:
45
51
recent activity. It will be closed if no further activity occurs.
46
52
exempt-issue-labels : " gsoc-outreachy,help wanted,in progress"
47
53
exempt-pr-labels : " gsoc-outreachy,help wanted,in progress"
54
+ delete-branch : true
48
55
49
56
bump-pr-stale :
50
57
if : >
51
- github.repository_owner == 'Homebrew ' && (
58
+ github.repository_owner == 'DomT4 ' && (
52
59
github.event_name != 'issue_comment' || (
53
60
contains(github.event.issue.labels.*.name, 'stale') ||
54
61
contains(github.event.pull_request.labels.*.name, 'stale')
55
62
)
56
63
)
57
64
runs-on : ubuntu-latest
65
+ permissions :
66
+ contents : write
67
+ issues : write
68
+ pull-requests : write
58
69
steps :
59
70
- name : Mark/Close Stale `bump-formula-pr` and `bump-cask-pr` Pull Requests
60
- uses : actions/stale@v9
71
+ uses : actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
61
72
with :
62
73
repo-token : ${{ secrets.GITHUB_TOKEN }}
63
74
days-before-stale : 2
68
79
pull request open, add a `help wanted` or `in progress` label.
69
80
exempt-pr-labels : " help wanted,in progress"
70
81
any-of-labels : " bump-formula-pr,bump-cask-pr"
71
-
72
- lock-threads :
73
- if : github.repository_owner == 'Homebrew' && github.event_name != 'issue_comment'
74
- runs-on : ubuntu-latest
75
- steps :
76
- - name : Lock Outdated Threads
77
- uses : dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771
78
- with :
79
- github-token : ${{ secrets.GITHUB_TOKEN }}
80
- process-only : ' issues, prs'
81
- issue-inactive-days : 30
82
- add-issue-labels : outdated
83
- pr-inactive-days : 30
84
- add-pr-labels : outdated
82
+ delete-branch : true
0 commit comments