Migrate from GitHub HashiBot to GitHub Actions
GitHub HashiBot is being decommissioned. This migrates the crash issue labeling and waiting-reply label removal to GitHub Actions. The stale issue handling is not migrated as neither behavior appears to be actively in use.
This commit is contained in:
parent
dd69252a18
commit
979199696b
|
@ -4,7 +4,8 @@
|
||||||
# backport/1.8:
|
# backport/1.8:
|
||||||
# beta/1.8:
|
# beta/1.8:
|
||||||
# blocks-release:
|
# blocks-release:
|
||||||
# crash:
|
crash:
|
||||||
|
- 'panic:'
|
||||||
# do-not-merge:
|
# do-not-merge:
|
||||||
# help-wanted:
|
# help-wanted:
|
||||||
# needs-discussion:
|
# needs-discussion:
|
||||||
|
@ -13,76 +14,76 @@
|
||||||
# pr/dependencies:
|
# pr/dependencies:
|
||||||
# pr/needs-rebase:
|
# pr/needs-rebase:
|
||||||
# pr/needs-tests:
|
# pr/needs-tests:
|
||||||
theme/acls:
|
# theme/acls:
|
||||||
- '(acl|ACL)'
|
# - '(acl|ACL)'
|
||||||
# theme/agent-cache:
|
# theme/agent-cache:
|
||||||
# theme/api:
|
# theme/api:
|
||||||
theme/catalog:
|
# theme/catalog:
|
||||||
- '(catalog|Catalog)'
|
# - '(catalog|Catalog)'
|
||||||
theme/certificates:
|
# theme/certificates:
|
||||||
- '(certificate|CA|Certificate\sAuthority)'
|
# - '(certificate|CA|Certificate\sAuthority)'
|
||||||
theme/cli:
|
# theme/cli:
|
||||||
- '(command-line|commandline|cli|command)'
|
# - '(command-line|commandline|cli|command)'
|
||||||
theme/config:
|
# theme/config:
|
||||||
- '(configuration_files|options#configuration_files)'
|
# - '(configuration_files|options#configuration_files)'
|
||||||
theme/connect:
|
# theme/connect:
|
||||||
- '(Connect|connect|service\smesh|mesh|proxy|gateway)'
|
# - '(Connect|connect|service\smesh|mesh|proxy|gateway)'
|
||||||
theme/consul-nomad:
|
# theme/consul-nomad:
|
||||||
- '(nomad|Nomad)'
|
# - '(nomad|Nomad)'
|
||||||
theme/consul-terraform-sync:
|
# theme/consul-terraform-sync:
|
||||||
- '(nia|NIA|Network\sInfrastructure\sAutomation)'
|
# - '(nia|NIA|Network\sInfrastructure\sAutomation)'
|
||||||
theme/consul-vault:
|
# theme/consul-vault:
|
||||||
- '(vault|Vault)'
|
# - '(vault|Vault)'
|
||||||
# theme/contributing:
|
# theme/contributing:
|
||||||
theme/dns:
|
# theme/dns:
|
||||||
- '(dns|DNS)'
|
# - '(dns|DNS)'
|
||||||
theme/envoy/xds:
|
# theme/envoy/xds:
|
||||||
- '(envoy|xds|xDS|XDS|Envoy)'
|
# - '(envoy|xds|xDS|XDS|Envoy)'
|
||||||
theme/federation-usability:
|
# theme/federation-usability:
|
||||||
- '(WAN|wan|wan_fed|federation|fed)'
|
# - '(WAN|wan|wan_fed|federation|fed)'
|
||||||
# theme/go-modules:
|
# theme/go-modules:
|
||||||
theme/health-checks:
|
# theme/health-checks:
|
||||||
- '(health-check|healthcheck|health\scheck)'
|
# - '(health-check|healthcheck|health\scheck)'
|
||||||
theme/ingress-gw:
|
# theme/ingress-gw:
|
||||||
- '(ingress|ingress-gateway|Ingress)'
|
# - '(ingress|ingress-gateway|Ingress)'
|
||||||
# thementernal-cleanup:
|
# thementernal-cleanup:
|
||||||
theme/internals:
|
# theme/internals:
|
||||||
- '(raft|RAFT|SERF|serf|lifeguard|Lifeguard|gossip)'
|
# - '(raft|RAFT|SERF|serf|lifeguard|Lifeguard|gossip)'
|
||||||
theme/kubernetes:
|
# theme/kubernetes:
|
||||||
- '(kubernetes|k8s|helm)'
|
# - '(kubernetes|k8s|helm)'
|
||||||
theme/mesh-gw:
|
# theme/mesh-gw:
|
||||||
- 'mesh'
|
# - 'mesh'
|
||||||
# theme/operator-usability:
|
# theme/operator-usability:
|
||||||
theme/packaging:
|
# theme/packaging:
|
||||||
- '(nix|Nix|RPM|rpm|DEB|deb|repository|systemd|upstart|Upstart|SystemD|brew|homebrew|choco|chocolatey)'
|
# - '(nix|Nix|RPM|rpm|DEB|deb|repository|systemd|upstart|Upstart|SystemD|brew|homebrew|choco|chocolatey)'
|
||||||
theme/performance:
|
# theme/performance:
|
||||||
- '(performance|requests\sper\ssecond)'
|
# - '(performance|requests\sper\ssecond)'
|
||||||
theme/service-metadata:
|
# theme/service-metadata:
|
||||||
- '(meta-data|meta)'
|
# - '(meta-data|meta)'
|
||||||
theme/streaming:
|
# theme/streaming:
|
||||||
- '(stream|streaming)'
|
# - '(stream|streaming)'
|
||||||
theme/telemetry:
|
# theme/telemetry:
|
||||||
- '(circonis|statsd|dogstatsd|datadog|DataDog|prometheus|Prometheus|metric|metrics|trace|tracing)'
|
# - '(circonis|statsd|dogstatsd|datadog|DataDog|prometheus|Prometheus|metric|metrics|trace|tracing)'
|
||||||
theme/terminating-gw:
|
# theme/terminating-gw:
|
||||||
- 'terminating'
|
# - 'terminating'
|
||||||
theme/testing:
|
# theme/testing:
|
||||||
- '(unit\stest|functional\stest|integration\stest|e2e|E2E)'
|
# - '(unit\stest|functional\stest|integration\stest|e2e|E2E)'
|
||||||
theme/tls:
|
# theme/tls:
|
||||||
- '(mtls|mTLS|tls|TLS)'
|
# - '(mtls|mTLS|tls|TLS)'
|
||||||
theme/ui:
|
# theme/ui:
|
||||||
- '(browser|chrome|firefox|IE|Chrome)'
|
# - '(browser|chrome|firefox|IE|Chrome)'
|
||||||
theme/windows:
|
# theme/windows:
|
||||||
- '(windows|Windows|Microsoft|microsoft)'
|
# - '(windows|Windows|Microsoft|microsoft)'
|
||||||
# thinking:
|
# thinking:
|
||||||
# type/bug:
|
# type/bug:
|
||||||
type/ci:
|
# type/ci:
|
||||||
- '(circle|circleci|CircleCI)'
|
# - '(circle|circleci|CircleCI)'
|
||||||
# type/crash:
|
# type/crash:
|
||||||
type/docs:
|
# type/docs:
|
||||||
- '(docs\/|docs|consul\.io)'
|
# - '(docs\/|docs|consul\.io)'
|
||||||
# type/docs-cherrypick:
|
# type/docs-cherrypick:
|
||||||
type/enhancement:
|
# type/enhancement:
|
||||||
- '(new\sfeature|feature|feature\srequest)'
|
# - '(new\sfeature|feature|feature\srequest)'
|
||||||
# type/good-first-issue:
|
# type/good-first-issue:
|
||||||
# type/question:
|
# type/question:
|
||||||
# type/umbrella-☂️:
|
# type/umbrella-☂️:
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
name: Issue Comment Created
|
||||||
|
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
triage:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions-ecosystem/action-remove-labels@v1
|
||||||
|
with:
|
||||||
|
labels: |
|
||||||
|
waiting-reply
|
|
@ -0,0 +1,15 @@
|
||||||
|
name: Issue Labeler
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
triage:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: github/issue-labeler@v2
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
configuration-path: .github/issue-labeler.yml
|
|
@ -1,51 +0,0 @@
|
||||||
behavior "regexp_issue_labeler" "panic_label" {
|
|
||||||
regexp = "panic:"
|
|
||||||
labels = ["crash"]
|
|
||||||
}
|
|
||||||
|
|
||||||
behavior "remove_labels_on_reply" "remove_stale" {
|
|
||||||
labels = ["waiting-reply"]
|
|
||||||
}
|
|
||||||
|
|
||||||
poll "stale_issue_closer" "waiting_reply_closer" {
|
|
||||||
schedule = "0 0 2 * * *"
|
|
||||||
no_reply_in_last = "480h" # 20 days
|
|
||||||
max_issues = 50
|
|
||||||
sleep_between_issues = "5s"
|
|
||||||
labels = ["waiting-reply-🤖"]
|
|
||||||
message = <<-EOF
|
|
||||||
Hey there,
|
|
||||||
|
|
||||||
This issue has been automatically closed because there hasn't been any activity for at least _20_ days.
|
|
||||||
|
|
||||||
If you are still experiencing problems, or still have questions, feel free to [open a new one](https://github.com/hashicorp/consul/issues/new) :+1:.
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
poll "stale_issue_closer" "old_issue_closer" {
|
|
||||||
schedule = "0 0 3 * * *"
|
|
||||||
no_reply_in_last = "1s"
|
|
||||||
max_issues = 100
|
|
||||||
sleep_between_issues = "5s"
|
|
||||||
labels = ["close-old-issue-🤖"]
|
|
||||||
message = <<-EOF
|
|
||||||
Hey there,
|
|
||||||
|
|
||||||
This issue was reported on a version of Consul that is quite old. Based on the volume of changes since that version we encourage you to try reproducing with the latest version of Consul. If you feel the issue is critical and on an older version of Consul, or still exists in the current version, feel free to [open a new issue](https://github.com/hashicorp/consul/issues/new) :+1:.
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
# poll "closed_issue_locker" "locker" {
|
|
||||||
# schedule = "0 0 4 * * *"
|
|
||||||
# closed_for = "720h" # 30 days
|
|
||||||
# max_issues = 250
|
|
||||||
# sleep_between_issues = "1m"
|
|
||||||
#
|
|
||||||
# message = <<-EOF
|
|
||||||
# Hey there,
|
|
||||||
#
|
|
||||||
# This issue has been automatically locked because it is closed and there hasn't been any activity for at least _30_ days.
|
|
||||||
#
|
|
||||||
# If you are still experiencing problems, or still have questions, feel free to [open a new one](https://github.com/hashicorp/consul/issues/new) :+1:.
|
|
||||||
# EOF
|
|
||||||
# }
|
|
Loading…
Reference in New Issue