-
-
Notifications
You must be signed in to change notification settings - Fork 28
33 lines (30 loc) · 1.02 KB
/
housekeeping.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Housekeeping
on:
issue_comment:
schedule:
- cron: "0 0 * * *" # once daily
jobs:
update-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: -1 # never add label automatically
days-before-close: 7
stale-issue-label: "waiting for op"
stale-pr-label: "waiting for op"
close-issue-label: "autoclosed"
close-pr-label: "autoclosed"
remove-waiting-label:
runs-on: ubuntu-latest
if: github.event.sender.login != 'scottmckendry' && github.event_name == 'issue_comment'
steps:
- uses: mondeja/remove-labels-gh-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: |
waiting for op