forked from elizaOS/eliza
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1.27 KB
/
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
32
33
34
name: Mark stale issues and pull requests
on:
schedule:
- cron: '25 18 * * *'
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
env:
DAYS_BEFORE_STALE: 30 # Define the days-before-stale value
DAYS_BEFORE_CLOSE: 7 # Define the days-before-close value
steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: |
This issue has been automatically marked as stale due to ${{
env.DAYS_BEFORE_STALE }} days of inactivity.
If no further activity occurs within ${{ env.DAYS_BEFORE_CLOSE }} days, it will be closed automatically. Please take action if this issue is still relevant.
stale-pr-message: |
This pull request has been automatically marked as stale due to ${{
env.DAYS_BEFORE_STALE }} days of inactivity.
If no further activity occurs within ${{ env.DAYS_BEFORE_CLOSE }} days, it will be closed automatically. Please take action if this pull request is still relevant.
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}