Skip to content

Commit cfd9640

Browse files
authored
Close PRs that are inactive for 4 months (#256)
1 parent e039b29 commit cfd9640

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

Diff for: .github/workflows/stale.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Configuration for https://github.com/actions/stale
2+
3+
name: "Stale issues and pull requests"
4+
on:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
workflow_dispatch:
8+
9+
jobs:
10+
stale:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/stale@v9
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
stale-issue-message: >-
17+
Thanks for your contribution!
18+
19+
20+
This issue has been automatically marked as stale because it has not had
21+
activity in the last 30 days. Note that the issue will not be automatically
22+
closed, but this notification will remind us to investigate why there's
23+
been inactivity. Thank you for participating in the Datadog open source community.
24+
25+
26+
If you would like this issue to remain open:
27+
28+
1. Verify that you can still reproduce the issue in the latest version of this project.
29+
30+
1. Comment that the issue is still reproducible and include updated details requested in the issue template.
31+
days-before-stale: 30
32+
days-before-close: 99999
33+
days-before-pr-close: 90
34+
stale-issue-label: "stale"
35+
exempt-issue-labels: "stale/exempt"
36+
stale-pr-message: >-
37+
This PR has been automatically marked as stale because it has not had activity in the last 30 days.
38+
39+
If there is no activity for another 90 days, this issue will be automatically closed.
40+
stale-pr-label: "stale"
41+
exempt-pr-labels: "stale/exempt"
42+
delete-branch: true

Diff for: repository.datadog.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
schema-version: v1
3+
kind: stale-branches
4+
max_age: 2920h # 4 months

0 commit comments

Comments
 (0)