-
Notifications
You must be signed in to change notification settings - Fork 423
59 lines (55 loc) · 2.55 KB
/
stalebot.yaml
File metadata and controls
59 lines (55 loc) · 2.55 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Stalebot
on:
workflow_dispatch: {}
schedule:
# Everyday at 10:00 UTC (05:00 EST / 06:00 EDT)
- cron: "0 10 * * *"
env:
DAYS_BEFORE_ISSUE_STALE: 90
DAYS_BEFORE_ISSUE_CLOSE: 90
DAYS_BEFORE_PR_STALE: 15
DAYS_BEFORE_PR_CLOSE: 5
jobs:
close-stale-issues:
name: Close Stale Issues
runs-on: ubuntu-22.04
permissions:
issues: write
steps:
- uses: actions/stale@v9 # https://github.com/actions/stale
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-issue-stale: ${{ env.DAYS_BEFORE_ISSUE_STALE }}
days-before-issue-close: ${{ env.DAYS_BEFORE_ISSUE_CLOSE }}
stale-issue-message: >
This issue has been marked as stale because of no activity in the last ${{ env.DAYS_BEFORE_ISSUE_STALE }} days.
It will be closed in the next ${{ env.DAYS_BEFORE_ISSUE_CLOSE }} days unless it is tagged "no stalebot" or other activity occurs.
close-issue-message: >
This issue has been closed due to no activity in the last 12 months.
stale-issue-label: 'stale' # https://github.com/kagent-dev/kagent/labels/stale
exempt-issue-labels: 'no stalebot' # https://github.com/kagent-dev/kagent/labels/no%20stalebot
enable-statistics: true
operations-per-run: 1000
ascending: true # asc means oldest first
close-stale-prs:
name: Close Stale PRs
runs-on: ubuntu-22.04
permissions:
pull-requests: write
issues: write
steps:
- uses: actions/stale@v9 # https://github.com/actions/stale
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-pr-stale: ${{ env.DAYS_BEFORE_PR_STALE }}
days-before-pr-close: ${{ env.DAYS_BEFORE_PR_CLOSE }}
stale-pr-message: >
This pull request has been marked as stale because of no activity in the last ${{ env.DAYS_BEFORE_PR_STALE }} days.
It will be closed in the next ${{ env.DAYS_BEFORE_PR_CLOSE }} days unless it is tagged "no stalebot" or other activity occurs.
close-pr-message: >
This pull request has been closed after ${{ env.DAYS_BEFORE_PR_STALE }} days of inactivity and an additional ${{ env.DAYS_BEFORE_PR_CLOSE }} days after being marked as stale.
stale-pr-label: 'stale' # https://github.com/kagent-dev/kagent/labels/stale
exempt-pr-labels: 'no stalebot' # https://github.com/kagent-dev/kagent/labels/no%20stalebot
enable-statistics: true
operations-per-run: 1000
ascending: true # asc means oldest first