-
Notifications
You must be signed in to change notification settings - Fork 6
/
BUILD.bazel
54 lines (49 loc) · 1.96 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@github_opensourceways_community_robot_lib//:image.bzl", "build_plugin_image", "push_image", "image_tags")
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/opensourceways/robot-gitee-opengauss-review
gazelle(name = "gazelle")
build_plugin_image(
name = "image",
plugin = "robot-gitee-opengauss-review",
)
push_image(
name = "push_image",
images = image_tags(
target = ":image",
),
)
go_library(
name = "go_default_library",
srcs = [
"approve.go",
"config.go",
"lgtm.go",
"main.go",
"merge.go",
"permission.go",
"robot.go",
],
importpath = "github.com/opensourceways/robot-gitee-opengauss-review",
visibility = ["//visibility:private"],
deps = [
"@com_gitee_openeuler_go_gitee//gitee:go_default_library",
"@com_github_opensourceways_community_robot_lib//config:go_default_library",
"@com_github_opensourceways_community_robot_lib//giteeclient:go_default_library",
"@com_github_opensourceways_community_robot_lib//giteeplugin:go_default_library",
"@com_github_opensourceways_community_robot_lib//logrusutil:go_default_library",
"@com_github_opensourceways_community_robot_lib//options:go_default_library",
"@com_github_opensourceways_community_robot_lib//secret:go_default_library",
"@com_github_opensourceways_community_robot_lib//utils:go_default_library",
"@com_github_opensourceways_repo_file_cache//models:go_default_library",
"@com_github_opensourceways_repo_file_cache//sdk:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@io_k8s_apimachinery//pkg/util/sets:go_default_library",
"@io_k8s_sigs_yaml//:go_default_library",
],
)
go_binary(
name = "robot-gitee-opengauss-review",
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)