Skip to content

Commit 2e0a7bd

Browse files
authored
Merge pull request darktable-org#14012 from victoryforce/stale-bot-maintenance
[actions] Stale bot maintenance
2 parents abc952e + 247ddad commit 2e0a7bd

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/stale.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
name: Mark stale issues and pull requests
22

33
on:
4+
workflow_dispatch:
45
schedule:
56
- cron: "0 0 * * *"
67

78
permissions:
89
contents: read
910

11+
env:
12+
BEFORE_ISSUE_STALE: 60
13+
BEFORE_ISSUE_CLOSE: 300
14+
BEFORE_PR_STALE: 60
15+
BEFORE_PR_CLOSE: 300
16+
1017
jobs:
1118
stale:
1219

@@ -19,14 +26,16 @@ jobs:
1926
- uses: actions/stale@v7
2027
with:
2128
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.'
2633
stale-issue-label: 'no-issue-activity'
2734
stale-pr-label: 'no-pr-activity'
28-
days-before-stale: 60
29-
days-before-close: 365
35+
days-before-issue-stale: ${{ env.BEFORE_ISSUE_STALE }}
36+
days-before-issue-close: ${{ env.BEFORE_ISSUE_CLOSE }}
37+
days-before-pr-stale: ${{ env.BEFORE_PR_STALE }}
38+
days-before-pr-close: ${{ env.BEFORE_PR_CLOSE }}
3039
ascending: true
3140
remove-stale-when-updated: true
3241
exempt-all-milestones: true

0 commit comments

Comments
 (0)