Skip to content

Commit a66f6f7

Browse files
authored
Merge pull request #822 from aareet/add_issue_grooming
Add issue pruning features
2 parents a3bf9b2 + 3ae7c5c commit a66f6f7

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Close stale issues"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/[email protected]
11+
with:
12+
repo-token: ${{ secrets.k8s_github_actions }}
13+
stale-issue-message: 'This issue has been open 180 days with no activity. If this issue is reproducible with the latest version of the provider and with Terraform 0.12, please comment. Otherwise this issue will be closed in 30 days.'
14+
days-before-stale: 180
15+
days-before-close: 30

.hashibot.hcl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
poll "closed_issue_locker" "locker" {
2+
schedule = "0 10 5 * * *"
3+
closed_for = "720h" # 30 days
4+
no_comment_if_no_activity_for = "1440h" # 60 days
5+
max_issues = 500
6+
sleep_between_issues = "5s"
7+
message = <<-EOF
8+
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
9+
10+
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
11+
EOF
12+
}

0 commit comments

Comments
 (0)