-
Notifications
You must be signed in to change notification settings - Fork 4
25 lines (22 loc) · 999 Bytes
/
repo_admin.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
name: 'Repo Admin'
on:
workflow_dispatch:
schedule:
- cron: '0 20 * * *' # Runs daily at 12 PM PST (20:00 UTC)
jobs:
close-stale-prs:
runs-on: ubuntu-latest
if: github.event.repository.private
timeout-minutes: 5
steps:
- name: Close Stale Pull Requests
uses: actions/stale@v9
with:
days-before-stale: 14 # Mark Issues/PRs as stale after 18 days (3 weeks - 7 days)
days-before-close: 7 # Close stale Issues/PRs after 7 additional days
stale-pr-message: 'This PR is reaching the 3 week mark with no activity. It will be closed in 1 week unless further action is taken. You can add the label "no-bots" to mark this as exempt.'
close-pr-message: 'This PR was closed because it saw no activity for 3 weeks.'
stale-pr-label: 'stale'
close-pr-label: 'closed-by-bot'
exempt-pr-labels: 'no-bots' # PRs with this label will not be marked as stale or closed
ignore-updates: true