Skip to content

Commit

Permalink
feat(tikv/rocksdb,tikv/rust-rocksdb): enable bot to control the revie…
Browse files Browse the repository at this point in the history
…wing flow (#1103)

ref #824
  • Loading branch information
wuhuizuo authored Sep 2, 2024
1 parent 0e903cf commit 56a469d
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 9 deletions.
44 changes: 40 additions & 4 deletions prow/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,38 @@ branch-protection:
release-8.3: *pd-release-branch-pt-with-tools-chunks
# release-{{.ver}}: *pd-release-branch-pt-with-tools-chunks

rocksdb:
branches:
6.29.tikv: &rocksdb-branch-pt
protect: true
required_status_checks:
contexts:
- "tide"
strict: true
6.4.tikv: *rocksdb-branch-pt
6.25.tikv: *rocksdb-branch-pt
tikv-6.5: *rocksdb-branch-pt
rust-rocksdb:
branches:
master:
protect: true
required_status_checks:
contexts:
- "tide"
- "DCO"
strict: true
tikv-5.4: &rust-rocksdb-branch-pt-release
protect: true
required_status_checks:
contexts:
- "tide"
- "DCO"
strict: false
tikv-6.1: *rust-rocksdb-branch-pt-release
tikv-6.5: *rust-rocksdb-branch-pt-release
tikv-7.1: *rust-rocksdb-branch-pt-release
# tikv-{{.lts-major.minor}}: *rust-rocksdb-branch-pt-release

raft-engine:
branches:
master: &raft-engine-branch-pt
Expand Down Expand Up @@ -926,11 +958,13 @@ tide:
ti-community-infra/rfcs: squash
ti-community-infra/test-prod: squash
ti-community-infra/tichi: squash
tikv/client-go: squash
tikv/client-rust: squash
tikv/community: squash
tikv/pd: squash
tikv/raft-engine: squash
tikv/client-go: squash
tikv/client-rust: squash
tikv/rocksdb: squash
tikv/rust-rocksdb: squash
tikv/tikv: squash

# Please reference the document about custom commit message template:
Expand Down Expand Up @@ -1291,11 +1325,13 @@ tide:
- needs-rebase

- repos:
- pingcap/tiproxy
- pingcap/tidb-engine-ext
- tikv/raft-engine
- pingcap/tiproxy
- tikv/client-go
- tikv/client-rust
- tikv/raft-engine
- tikv/rocksdb
- tikv/rust-rocksdb
labels:
- lgtm
- approved
Expand Down
8 changes: 5 additions & 3 deletions prow/config/external_plugins_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -743,11 +743,13 @@ ti-community-cherrypicker:
- lgtm
- approved
- repos:
- tikv/tikv
- tikv/pd
- tikv/client-java
- tikv/client-go
- tikv/client-java
- tikv/client-rust
- tikv/pd
- tikv/rocksdb
- tikv/rust-rocksdb
- tikv/tikv
label_prefix: needs-cherry-pick-
picked_label_prefix: type/cherry-pick-for-
allow_all: true
Expand Down
43 changes: 41 additions & 2 deletions prow/config/plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ approve:
commandHelpLink: "https://prow.tidb.net/command-help"
pr_process_link: "https://book.prow.tidb.net/#/workflows/pr"
lgtm:
- repos: [pingcap, ti-community-infra, PingCAP-QE, pingcap-inc]
- repos: [pingcap, tikv, ti-community-infra, PingCAP-QE, pingcap-inc]
review_acts_as_lgtm: true
reviewer_count: 1
- repos:
Expand All @@ -40,6 +40,7 @@ lgtm:
- tikv/pd
- tikv/raft-engine
- tikv/tikv
- tikv/rocksdb
review_acts_as_lgtm: true
reviewer_count: 2
owners:
Expand Down Expand Up @@ -74,6 +75,8 @@ owners:
- tikv/client-rust
- tikv/pd
- tikv/raft-engine
- tikv/rocksdb
- tikv/rust-rocksdb
- tikv/tikv
filenames:
pingcap/tidb-engine-ext:
Expand All @@ -96,9 +99,11 @@ welcome:
- ti-community-infra
- tikv/client-go
- tikv/client-rust
- tikv/tikv
- tikv/pd
- tikv/raft-engine
- tikv/rocksdb
- tikv/rust-rocksdb
- tikv/tikv
message_template:
"Welcome @{{.AuthorLogin}}! <br><br>It looks like this is your first PR to
<a href='https://github.com/{{.Org}}/{{.Repo}}'>{{.Org}}/{{.Repo}}</a> 🎉.
Expand Down Expand Up @@ -665,6 +670,28 @@ plugins:
- trigger
- verify-owners
- wip
tikv/rocksdb:
plugins:
- approve
- hold
- label
- lgtm
- owners-label
- size
- trigger
- verify-owners
- wip
tikv/rust-rocksdb:
plugins:
- approve
- hold
- label
- lgtm
- owners-label
- size
- trigger
- verify-owners
- wip
tikv/client-go:
plugins:
- approve
Expand Down Expand Up @@ -1425,6 +1452,18 @@ external_plugins:
events:
- pull_request
- issue_comment
tikv/rocksdb:
- name: ti-community-cherrypicker
endpoint: http://prow-ti-community-cherrypicker
events:
- pull_request
- issue_comment
tikv/rust-rocksdb:
- name: ti-community-cherrypicker
endpoint: http://prow-ti-community-cherrypicker
events:
- pull_request
- issue_comment

PingCAP-QE/tidb-test:
- name: needs-rebase
Expand Down

0 comments on commit 56a469d

Please sign in to comment.