forked from ROCm/rocm-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (47 loc) · 1.86 KB
/
Copy pathclose-stale-prs.yml
File metadata and controls
63 lines (47 loc) · 1.86 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
60
61
62
63
name: Close Stale PRs
on:
schedule:
# Run daily at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch: # Allow manual triggering
permissions:
pull-requests: write
issues: write
jobs:
stale:
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- uses: actions/stale@v10
with:
# Only process PRs, not issues
only-pr-labels: ''
# Days before marking as stale
days-before-stale: 25
# Days before closing after being marked stale
days-before-close: 5
# Label to apply when PR becomes stale
stale-pr-label: 'stale'
# Message to post when PR becomes stale
stale-pr-message: |
This pull request has been inactive for 25 days and will be marked as stale.
If you would like to keep this PR open, please:
- Add new commits
- Add a comment explaining why it should remain open
This PR will be automatically closed in 5 days if no further activity occurs.
# Message to post when closing the PR
close-pr-message: |
This pull request has been automatically closed due to inactivity (30 days with no updates).
If you'd like to continue working on this, feel free to reopen the PR or create a new one.
# Don't process issues, only PRs
days-before-issue-stale: -1
days-before-issue-close: -1
# Exempt PRs with these labels from being marked stale
exempt-pr-labels: 'keep-open,in-progress,blocked'
# Remove stale label when PR has activity
remove-stale-when-updated: true
# Ascending order processes oldest PRs first
ascending: true
# Maximum number of operations per run (to avoid API rate limits)
operations-per-run: 1000