File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow closes PRs that have had no activity for 14 days.
2+ name : Close inactive google-contributor PRs
3+
4+ on :
5+ schedule :
6+ - cron : " 30 2 * * *"
7+
8+ jobs :
9+ stale :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ pull-requests : write
13+ issues : write
14+
15+ steps :
16+ - uses : actions/stale@v5
17+ with :
18+ repo-token : ${{ secrets.GITHUB_TOKEN }}
19+ any-of-labels : " google-contributor"
20+ days-before-pr-stale : 14
21+ days-before-pr-close : 0
22+ stale-pr-label : " status:stale"
23+ exempt-pr-labels : " override-stale"
24+ close-pr-message : >
25+ This google-contributor PR has been inactive for 14 days.
26+ days-before-issue-stale : -1
27+ days-before-issue-close : -1
Original file line number Diff line number Diff line change 1+ # This workflow warns and then closes issues that have had no activity for a specified amount of time.
2+ name : Mark and close stale issues
3+
4+ on :
5+ schedule :
6+ # Scheduled to run at 1:30 UTC everyday
7+ - cron : ' 30 1 * * *'
8+
9+ jobs :
10+ stale :
11+
12+ runs-on : ubuntu-latest
13+ permissions :
14+ issues : write
15+
16+ steps :
17+ - uses : actions/stale@v5
18+ with :
19+ repo-token : ${{ secrets.GITHUB_TOKEN }}
20+ days-before-issue-stale : 7
21+ days-before-issue-close : 2
22+ stale-issue-label : " status:stale"
23+ close-issue-reason : not_planned
24+ any-of-labels : " status:awaiting user response"
25+ remove-stale-when-updated : true
26+ labels-to-remove-when-unstale : ' status:awaiting user response,status:stale'
27+ stale-issue-message : >
28+ This issue has been marked as stale because it has been open for 7 days with no activity. It will be closed in 2 days if no further activity occurs.
29+ close-issue-message : >
30+ This issue was closed because it has been inactive for 9 days.
31+ Please post a new issue if you need further assistance. Thanks!
32+ # Label that can be assigned to issues to exclude them from being marked as stale
33+ exempt-issue-labels : ' override-stale'
You can’t perform that action at this time.
0 commit comments