Skip to content

Commit 842ea50

Browse files
committed
[Global] Chore: Automate stale issues and PRs (30 days to stale, then 5 days till closing) (#5262)
<!-- start pr-codex --> --- ## PR-Codex overview This PR adds a GitHub Actions workflow to automatically close stale issues and pull requests after a specified period of inactivity. ### Detailed summary - Introduced a new workflow in `.github/workflows/stale.yml` named 'Close stale issues and PRs'. - Configured the workflow to trigger on a schedule using a cron job. - Set the job to run on `ubuntu-latest`. - Utilized `actions/stale@v9` for managing stale issues and PRs. - Configured messages for stale issues and PRs. - Defined `days-before-stale` as 30 and `days-before-close` as 5. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 8bd2a99 commit 842ea50

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/stale.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v9
11+
with:
12+
stale-issue-message: 'This issue has been inactive for 30 days. It is now marked as stale and will be closed in 5 days if no further activity occurs.'
13+
stale-pr-message: 'This PR has been inactive for 30 days. It is now marked as stale and will be closed in 5 days if no further activity occurs.'
14+
days-before-stale: 30
15+
days-before-close: 5

0 commit comments

Comments
 (0)