Skip to content

Commit 3397c40

Browse files
CLOUDP-79100: Autoclose stale issues and PRs (#318)
1 parent fce489d commit 3397c40

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/stale.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: 'Stale issues and PRs handler'
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@v6
13+
id: stale
14+
with:
15+
stale-issue-message: 'This issue has gone 30 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!'
16+
stale-pr-message: 'This PR has gone 30 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!'
17+
stale-issue-label: 'stale'
18+
stale-pr-label: 'stale'
19+
days-before-stale: 30
20+
days-before-close: 30
21+
exempt-pr-labels: 'not_stale'
22+
exempt-issue-labels: 'not_stale'

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ Some additional advice:
4444
Before creating a pull request consider opening a new issue first,
4545
please check [this section](#reporting-bugs-or-suggesting-enhancements) on how we track issues for this project.
4646

47+
### Autoclose stale issues and PRs
48+
49+
- After 30 days of no activity (no comments or commits on an issue/PR) we automatically tag it as "stale" and add a message: ```This issue/PR has gone 30 days without any activity and meets the project's definition of "stale". This will be auto-closed if there is no new activity over the next 60 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!```
50+
- After 60 more days of no activity we automatically close the issue/PR.
51+
4752
### Development setup
4853

4954
#### Prerequisite Tools

0 commit comments

Comments
 (0)