Skip to content

Commit

Permalink
Close PRs that are inactive for 4 months (#2648)
Browse files Browse the repository at this point in the history
* close PRs that are inactive for 4 months

* add devflow for stale branch cleanup
  • Loading branch information
nkzou authored Aug 20, 2024
1 parent 5e5429d commit 8dd07ca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ name: "Stale issues and pull requests"
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: >-
Expand All @@ -29,11 +30,13 @@ jobs:
1. Comment that the issue is still reproducible and include updated details requested in the issue template.
days-before-stale: 30
days-before-close: 99999
days-before-pr-close: 90
stale-issue-label: "stale"
exempt-issue-label: "stale/exempt"
exempt-issue-labels: "stale/exempt"
stale-pr-message: >-
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
This PR has been automatically marked as stale because it has not had activity in the last 30 days.
Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity.
If there is no activity for another 90 days, this issue will be automatically closed.
stale-pr-label: "stale"
exempt-pr-label: "stale/exempt"
exempt-pr-labels: "stale/exempt"
delete-branch: true
4 changes: 4 additions & 0 deletions repository.datadog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
schema-version: v1
kind: stale-branches
max_age: 2920h # 4 months

0 comments on commit 8dd07ca

Please sign in to comment.