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/stale.yml
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,19 @@
1
1
name: Mark stale issues and pull requests
2
2
3
3
on:
4
+
workflow_dispatch:
4
5
schedule:
5
6
- cron: "0 0 * * *"
6
7
7
8
permissions:
8
9
contents: read
9
10
11
+
env:
12
+
BEFORE_ISSUE_STALE: 60
13
+
BEFORE_ISSUE_CLOSE: 300
14
+
BEFORE_PR_STALE: 60
15
+
BEFORE_PR_CLOSE: 300
16
+
10
17
jobs:
11
18
stale:
12
19
@@ -19,14 +26,16 @@ jobs:
19
26
- uses: actions/stale@v7
20
27
with:
21
28
repo-token: ${{ secrets.GITHUB_TOKEN }}
22
-
stale-issue-message: 'This issue did not get any activity in the past 60 days and will be closed in 365 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.'
23
-
stale-pr-message: 'This pull request did not get any activity in the past 60 days and will be closed in 365 days if no update occurs. Please verify it has no conflicts with the master branch and rebase if needed. Mention it now if you need help or give permission to other people to finish your work.'
24
-
close-issue-message: 'This issue did not get any activity in the past year and thus has been closed. Please check if the newest release or master branch has it fixed. Please, create a new issue if the issue is not fixed.'
25
-
close-pr-message: 'This pull reguest did not get any activity in the past year and thus has been closed.'
29
+
stale-issue-message: 'This issue has been marked as stale due to inactivity for the last ${{ env.BEFORE_ISSUE_STALE }} days. It will be automatically closed in ${{ env.BEFORE_ISSUE_CLOSE }} days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.'
30
+
stale-pr-message: 'This pull request has been marked as stale due to inactivity for the last ${{ env.BEFORE_PR_STALE }} days. It will be automatically closed in ${{ env.BEFORE_PR_CLOSE }} days if no update occurs. Please verify it has no conflicts with the master branch and rebase if needed. Mention it now if you need help or give permission to other people to finish your work.'
31
+
close-issue-message: 'This issue was closed because it has been stalled for ${{ env.BEFORE_ISSUE_CLOSE }} days with no activity. Please check if the newest release or nightly build has it fixed. Please, create a new issue if the issue is not fixed.'
32
+
close-pr-message: 'This pull reguest was closed because it has been stalled for ${{ env.BEFORE_PR_CLOSE }} days with no activity.'
0 commit comments