Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close PRs that are inactive for 4 months #2648

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading