Skip to content

Commit 3ecda94

Browse files
CLOUDP-79100: [mongocli] Autoclose stale issues and PRs (#1490)
1 parent 7ebce0b commit 3ecda94

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/stale.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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'
23+

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ this document describes some guidelines necessary to participate in the communit
88
- [Asking Support Questions](#asking-support-questions)
99
- [Feature Requests](#feature-requests)
1010
- [Reporting Issues](#reporting-issues)
11+
- [Autoclose stale issues and PRs](#autoclose-stale-issues-and-prs)
1112
- [Submitting Patches](#submitting-patches)
1213
- [Code Contribution Guidelines](#code-contribution-guidelines)
1314
- [Development Setup](#development-setup)
@@ -36,6 +37,12 @@ with as much detail as possible, including things like operating system or anyth
3637
The MongoDB CLI project welcomes all contributors and contributions regardless of skill or experience level.
3738
If you are interested in helping with the project, please follow our [guidelines](#code-contribution-guidelines).
3839

40+
## Autoclose stale issues and PRs
41+
42+
- 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!```
43+
- After 60 more days of no activity we automatically close the issue/PR.
44+
45+
3946
### Code Contribution Guidelines
4047

4148
To create the best possible product for our users and the best contribution experience for our developers,
@@ -138,3 +145,4 @@ To run Snyk locally please follow their [CLI reference](https://support.snyk.io/
138145
Reviewers, please ensure that the CLA has been signed by referring to [the contributors tool](https://contributors.corp.mongodb.com/) (internal link).
139146

140147
For changes that involve user facing copy please include `docs-cloud-team` as a reviewer.
148+

0 commit comments

Comments
 (0)