diff --git a/br/OWNERS b/br/OWNERS index d52ed6a37f9fa..ba393b463277c 100644 --- a/br/OWNERS +++ b/br/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-br +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-br diff --git a/dumpling/OWNERS b/dumpling/OWNERS index 408c9e3b3f0ac..895d91e25aa6f 100644 --- a/dumpling/OWNERS +++ b/dumpling/OWNERS @@ -1,7 +1,12 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-dumpling -labels: - - component/dumpling +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-dumpling + labels: + - component/dumpling diff --git a/lightning/OWNERS b/lightning/OWNERS index ed61d1805d79f..1576c5db1b008 100644 --- a/lightning/OWNERS +++ b/lightning/OWNERS @@ -2,6 +2,9 @@ options: no_parent_owners: true filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers "(tidb-lightning\\.toml)$": approvers: - sig-critical-approvers-tidb-lightning diff --git a/lightning/cmd/tidb-lightning-ctl/OWNERS b/lightning/cmd/tidb-lightning-ctl/OWNERS index c6f546eef02f2..5223c0d99a71b 100644 --- a/lightning/cmd/tidb-lightning-ctl/OWNERS +++ b/lightning/cmd/tidb-lightning-ctl/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-lightning +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-lightning diff --git a/lightning/cmd/tidb-lightning/OWNERS b/lightning/cmd/tidb-lightning/OWNERS index c6f546eef02f2..5223c0d99a71b 100644 --- a/lightning/cmd/tidb-lightning/OWNERS +++ b/lightning/cmd/tidb-lightning/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-lightning +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-lightning diff --git a/pkg/autoid_service/OWNERS b/pkg/autoid_service/OWNERS index f8619387608ac..f6aa1f128f97a 100644 --- a/pkg/autoid_service/OWNERS +++ b/pkg/autoid_service/OWNERS @@ -1,6 +1,11 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-autoid-service +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-autoid-service diff --git a/pkg/bindinfo/OWNERS b/pkg/bindinfo/OWNERS index 904863f05e7fc..42ea46e7aeac4 100644 --- a/pkg/bindinfo/OWNERS +++ b/pkg/bindinfo/OWNERS @@ -1,7 +1,12 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-planner -labels: - - sig/planner +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-planner + labels: + - sig/planner diff --git a/pkg/config/OWNERS b/pkg/config/OWNERS index cae9ee2a6d9d4..b8f2b3d16e226 100644 --- a/pkg/config/OWNERS +++ b/pkg/config/OWNERS @@ -2,6 +2,9 @@ options: no_parent_owners: true filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers "(OWNERS|config\\.go|config\\.toml\\.example)$": approvers: - sig-critical-approvers-tidb-server diff --git a/pkg/ddl/OWNERS b/pkg/ddl/OWNERS index 75489727655a6..b0ec88fa7f4a6 100644 --- a/pkg/ddl/OWNERS +++ b/pkg/ddl/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-ddl +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-ddl diff --git a/pkg/distsql/OWNERS b/pkg/distsql/OWNERS index 11ce88846bb13..c4ca243bca2ce 100644 --- a/pkg/distsql/OWNERS +++ b/pkg/distsql/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-distsql +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-distsql diff --git a/pkg/domain/OWNERS b/pkg/domain/OWNERS index 57f3ed04b97a8..763c291c66b52 100644 --- a/pkg/domain/OWNERS +++ b/pkg/domain/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-domain +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-domain diff --git a/pkg/dumpformat/OWNERS b/pkg/dumpformat/OWNERS index 16d15baa6f225..9ae75f2e21d56 100644 --- a/pkg/dumpformat/OWNERS +++ b/pkg/dumpformat/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-dumpling +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-dumpling diff --git a/pkg/dxf/OWNERS b/pkg/dxf/OWNERS index 1da418129cef5..5a680b2f2269d 100644 --- a/pkg/dxf/OWNERS +++ b/pkg/dxf/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-dxf +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-dxf diff --git a/pkg/executor/OWNERS b/pkg/executor/OWNERS index 8e5e9cbd00495..da450013fbb78 100644 --- a/pkg/executor/OWNERS +++ b/pkg/executor/OWNERS @@ -2,6 +2,9 @@ options: no_parent_owners: true filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers "analyze.*\\.go$": approvers: - sig-approvers-stats diff --git a/pkg/executor/aggfuncs/OWNERS b/pkg/executor/aggfuncs/OWNERS index fdb555c5f9a4d..aa0b4c889a1bf 100644 --- a/pkg/executor/aggfuncs/OWNERS +++ b/pkg/executor/aggfuncs/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-executor +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-executor diff --git a/pkg/executor/aggregate/OWNERS b/pkg/executor/aggregate/OWNERS index fdb555c5f9a4d..aa0b4c889a1bf 100644 --- a/pkg/executor/aggregate/OWNERS +++ b/pkg/executor/aggregate/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-executor +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-executor diff --git a/pkg/executor/importer/OWNERS b/pkg/executor/importer/OWNERS index 6f03c32c76b51..0b8916eb8a738 100644 --- a/pkg/executor/importer/OWNERS +++ b/pkg/executor/importer/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-executor-import +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-executor-import diff --git a/pkg/executor/join/OWNERS b/pkg/executor/join/OWNERS index fdb555c5f9a4d..aa0b4c889a1bf 100644 --- a/pkg/executor/join/OWNERS +++ b/pkg/executor/join/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-executor +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-executor diff --git a/pkg/executor/mppcoordmanager/OWNERS b/pkg/executor/mppcoordmanager/OWNERS index fdb555c5f9a4d..aa0b4c889a1bf 100644 --- a/pkg/executor/mppcoordmanager/OWNERS +++ b/pkg/executor/mppcoordmanager/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-executor +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-executor diff --git a/pkg/executor/sortexec/OWNERS b/pkg/executor/sortexec/OWNERS index fdb555c5f9a4d..aa0b4c889a1bf 100644 --- a/pkg/executor/sortexec/OWNERS +++ b/pkg/executor/sortexec/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-executor +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-executor diff --git a/pkg/executor/test/analyzetest/OWNERS b/pkg/executor/test/analyzetest/OWNERS index d7cfaf80fb73b..a93e034373dfc 100644 --- a/pkg/executor/test/analyzetest/OWNERS +++ b/pkg/executor/test/analyzetest/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-stats +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-stats diff --git a/pkg/executor/unionexec/OWNERS b/pkg/executor/unionexec/OWNERS index fdb555c5f9a4d..aa0b4c889a1bf 100644 --- a/pkg/executor/unionexec/OWNERS +++ b/pkg/executor/unionexec/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-executor +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-executor diff --git a/pkg/expression/OWNERS b/pkg/expression/OWNERS index 468d81c5e4b5e..4360f466a4ea5 100644 --- a/pkg/expression/OWNERS +++ b/pkg/expression/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-expression +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-expression diff --git a/pkg/infoschema/OWNERS b/pkg/infoschema/OWNERS index d1d8285c8292e..cb8a4cdf939a8 100644 --- a/pkg/infoschema/OWNERS +++ b/pkg/infoschema/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-infoschema +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-infoschema diff --git a/pkg/ingestor/OWNERS b/pkg/ingestor/OWNERS index 75489727655a6..b0ec88fa7f4a6 100644 --- a/pkg/ingestor/OWNERS +++ b/pkg/ingestor/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-ddl +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-ddl diff --git a/pkg/lightning/OWNERS b/pkg/lightning/OWNERS index c6f546eef02f2..5223c0d99a71b 100644 --- a/pkg/lightning/OWNERS +++ b/pkg/lightning/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-lightning +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-lightning diff --git a/pkg/lightning/config/OWNERS b/pkg/lightning/config/OWNERS index 7cc3d0dcc0843..74771439f2d4c 100644 --- a/pkg/lightning/config/OWNERS +++ b/pkg/lightning/config/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-critical-approvers-tidb-lightning +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-critical-approvers-tidb-lightning diff --git a/pkg/lock/OWNERS b/pkg/lock/OWNERS index a70e8d7189b99..2b264e91a7c1b 100644 --- a/pkg/lock/OWNERS +++ b/pkg/lock/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-lock +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-lock diff --git a/pkg/meta/OWNERS b/pkg/meta/OWNERS index e7d7e1fb58536..e9fe4c07929ff 100644 --- a/pkg/meta/OWNERS +++ b/pkg/meta/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-meta +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-meta diff --git a/pkg/meta/metadef/OWNERS b/pkg/meta/metadef/OWNERS index a60db68fab317..23c14fae02b2e 100644 --- a/pkg/meta/metadef/OWNERS +++ b/pkg/meta/metadef/OWNERS @@ -2,6 +2,9 @@ options: no_parent_owners: true filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers "(OWNERS|system_tables_def\\.go)$": approvers: - sig-critical-approvers-tidb-server diff --git a/pkg/metrics/OWNERS b/pkg/metrics/OWNERS index c6db2ad6831bd..10a6ce0b8597e 100644 --- a/pkg/metrics/OWNERS +++ b/pkg/metrics/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-metrics +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-metrics diff --git a/pkg/objstore/OWNERS b/pkg/objstore/OWNERS index 57b4aae0263d0..c5c804403c2fc 100644 --- a/pkg/objstore/OWNERS +++ b/pkg/objstore/OWNERS @@ -1,6 +1,11 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-br - - sig-approvers-lightning +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-br + - sig-approvers-lightning diff --git a/pkg/owner/OWNERS b/pkg/owner/OWNERS index 41cf0d11840e9..aa34e19ad1196 100644 --- a/pkg/owner/OWNERS +++ b/pkg/owner/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-owner +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-owner diff --git a/pkg/parser/OWNERS b/pkg/parser/OWNERS index c3abf5ba6cc7c..b33b669a7acad 100644 --- a/pkg/parser/OWNERS +++ b/pkg/parser/OWNERS @@ -2,6 +2,9 @@ options: no_parent_owners: true filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers "(parser\\.y)$": approvers: - sig-critical-approvers-parser diff --git a/pkg/planner/OWNERS b/pkg/planner/OWNERS index 904863f05e7fc..42ea46e7aeac4 100644 --- a/pkg/planner/OWNERS +++ b/pkg/planner/OWNERS @@ -1,7 +1,12 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-planner -labels: - - sig/planner +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-planner + labels: + - sig/planner diff --git a/pkg/resourcemanager/OWNERS b/pkg/resourcemanager/OWNERS index 93ea188e29c9f..1e7ca0e3a1519 100644 --- a/pkg/resourcemanager/OWNERS +++ b/pkg/resourcemanager/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-resourcemanager +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-resourcemanager diff --git a/pkg/session/OWNERS b/pkg/session/OWNERS index 229b88fea6206..2d61c83ccc01f 100644 --- a/pkg/session/OWNERS +++ b/pkg/session/OWNERS @@ -2,6 +2,9 @@ options: no_parent_owners: true filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers "(OWNERS|upgrade_def\\.go)$": approvers: - sig-critical-approvers-tidb-server diff --git a/pkg/sessionctx/vardef/OWNERS b/pkg/sessionctx/vardef/OWNERS index dc9645b9c8b79..011c332a61c73 100644 --- a/pkg/sessionctx/vardef/OWNERS +++ b/pkg/sessionctx/vardef/OWNERS @@ -2,6 +2,9 @@ options: no_parent_owners: true filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers "(OWNERS|(sysvar|tidb_vars)\\.go)$": approvers: - sig-critical-approvers-tidb-server diff --git a/pkg/sessionctx/variable/OWNERS b/pkg/sessionctx/variable/OWNERS index 38a636ac8ca75..bc24856b5d509 100644 --- a/pkg/sessionctx/variable/OWNERS +++ b/pkg/sessionctx/variable/OWNERS @@ -2,6 +2,9 @@ options: no_parent_owners: true filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers "(OWNERS|(sysvar|session|tidb_vars)\\.go)$": approvers: - sig-critical-approvers-tidb-server diff --git a/pkg/statistics/OWNERS b/pkg/statistics/OWNERS index aecd20a3ca037..dd8a6ca1b0e22 100644 --- a/pkg/statistics/OWNERS +++ b/pkg/statistics/OWNERS @@ -1,8 +1,13 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-stats -labels: - - sig/planner - - component/statistics +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-stats + labels: + - sig/planner + - component/statistics diff --git a/pkg/table/OWNERS b/pkg/table/OWNERS index 76bd65b26fb7f..7a1d5e9ec623b 100644 --- a/pkg/table/OWNERS +++ b/pkg/table/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-table +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-table diff --git a/pkg/tablecodec/OWNERS b/pkg/tablecodec/OWNERS index 76bd65b26fb7f..7a1d5e9ec623b 100644 --- a/pkg/tablecodec/OWNERS +++ b/pkg/tablecodec/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-table +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-table diff --git a/pkg/util/naming/OWNERS b/pkg/util/naming/OWNERS index 75489727655a6..b0ec88fa7f4a6 100644 --- a/pkg/util/naming/OWNERS +++ b/pkg/util/naming/OWNERS @@ -1,5 +1,10 @@ # See the OWNERS docs at https://go.k8s.io/owners options: no_parent_owners: true -approvers: - - sig-approvers-ddl +filters: + "(^|/)BUILD\\.bazel$": + approvers: + - sig-community-approvers + ".*": + approvers: + - sig-approvers-ddl