Skip to content

Commit 691ab4d

Browse files
authored
Close PRs that are inactive for 4 months (#2122)
* close PRs that are inactive for 4 months * add devflow for stale branch cleanup
1 parent 2cf244c commit 691ab4d

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/stale.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ name: "Stale issues and pull requests"
44
on:
55
schedule:
66
- cron: "0 0 * * *"
7+
workflow_dispatch:
78

89
jobs:
910
stale:
1011
runs-on: ubuntu-latest
1112
steps:
12-
- uses: actions/stale@v8
13+
- uses: actions/stale@v9
1314
with:
1415
repo-token: ${{ secrets.GITHUB_TOKEN }}
1516
stale-issue-message: >-
@@ -29,11 +30,13 @@ jobs:
2930
1. Comment that the issue is still reproducible and include updated details requested in the issue template.
3031
days-before-stale: 30
3132
days-before-close: 99999
33+
days-before-pr-close: 90
3234
stale-issue-label: "stale"
33-
exempt-issue-label: "stale/exempt"
35+
exempt-issue-labels: "stale/exempt"
3436
stale-pr-message: >-
35-
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
37+
This PR has been automatically marked as stale because it has not had activity in the last 30 days.
3638
37-
Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity.
39+
If there is no activity for another 90 days, this issue will be automatically closed.
3840
stale-pr-label: "stale"
39-
exempt-pr-label: "stale/exempt"
41+
exempt-pr-labels: "stale/exempt"
42+
delete-branch: true

repository.datadog.yaml

Lines changed: 4 additions & 0 deletions
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)