Skip to content

Commit e82e5e4

Browse files
committed
[MINOR] Add GitHub Action to close stale PRs
1 parent d95f43a commit e82e5e4

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Close stale PRs after 1 year of inactivity
2+
3+
on:
4+
schedule:
5+
- cron: '0 2 * * *' # Every day at 11 AM KST (2 AM UTC)
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/stale@v9
12+
with:
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
days-before-stale: 365
15+
days-before-close: 7
16+
stale-pr-message: >
17+
This pull request has been inactive for over a year.
18+
If no further activity occurs within the next 7 days, it will be automatically closed.
19+
If you believe this PR is still relevant, please feel free to leave a comment or make an update. Thank you!
20+
close-pr-message: >
21+
This pull request has been automatically closed due to prolonged inactivity (over one year without updates).
22+
If you feel this was done in error or would like to continue the discussion, feel free to reopen it. Thank you for your contributions!
23+
only-prs: true
24+
operations-per-run: 100
25+
remove-stale-when-updated: true

0 commit comments

Comments
 (0)