-
-
Notifications
You must be signed in to change notification settings - Fork 53
31 lines (29 loc) · 997 Bytes
/
stale.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
name: StaleBOT
on:
workflow_dispatch:
name: 'Force cleanup'
schedule:
- cron: "30 14 * * *"
permissions:
pull-requests: write
issues: write
contents: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Generate App token
id: generated_token
uses: tibdex/github-app-token@v2.1.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: actions/stale@v9
with:
repo-token: ${{ steps.generated_token.outputs.token }}
days-before-stale: 7
days-before-close: 3
stale-issue-message: 'This issue has been marked as stale due to inactivity and will be closed. Comment anything on this issue to prevent it'
stale-pr-message: 'This pull request has been marked as stale due to inactivity and will be closed. Comment anything on this PR to prevent it'
exempt-issue-labels: 'not-stale'
exempt-pr-labels: 'not-stale'