Skip to content

Commit 2cf4eeb

Browse files
committed
Add issue pruning features
1 parent a3bf9b2 commit 2cf4eeb

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.vsphere_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)