You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/close_inactive_issues_prs.yaml
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,8 @@
1
-
name: Close inactive issues
1
+
name: Close inactive issues and PRs
2
2
on:
3
3
schedule:
4
4
- cron: "30 1 * * *"
5
+
workflow_dispatch:
5
6
6
7
jobs:
7
8
close-issues:
@@ -12,11 +13,21 @@ jobs:
12
13
steps:
13
14
- uses: actions/stale@v9
14
15
with:
16
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
17
+
operations-per-run: 500# API rate limit
18
+
## issues
19
+
# stale
15
20
days-before-issue-stale: 45# for initial period, suggest 15
16
21
stale-issue-label: "stale"
17
22
stale-issue-message: "This issue is stale because it has been open for 45 days with no activity."
23
+
# close
18
24
days-before-issue-close: 365# for initial period, suggest 30
19
25
close-issue-message: "This issue was closed because it has been inactive for 365 days since being marked as stale, please reopen if it's still applicable."
26
+
## PRs
27
+
# stale
20
28
days-before-pr-stale: 45# for initial period, suggest 15
29
+
stale-pr-label: "stale"
30
+
stale-pr-message: "This PR is stale because it has been open for 45 days with no activity."
31
+
# close
21
32
days-before-pr-close: 365# for initial period, suggest 30
22
-
repo-token: ${{ secrets.GITHUB_TOKEN }}
33
+
close-pr-message: "This PR was closed because it has been inactive for 365 days since being marked as stale, please reopen if it's still applicable."
0 commit comments