...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "approval",
5 srcs = [
6 "approve.go",
7 "evaluate.go",
8 "parse.go",
9 ],
10 importpath = "edge-infra.dev/pkg/f8n/devinfra/repo/owners/policybot/policy/approval",
11 visibility = ["//visibility:public"],
12 deps = [
13 "//pkg/f8n/devinfra/repo/owners/policybot/policy/common",
14 "//pkg/f8n/devinfra/repo/owners/policybot/policy/predicate",
15 "//pkg/f8n/devinfra/repo/owners/policybot/pull",
16 "@com_github_pkg_errors//:errors",
17 "@com_github_rs_zerolog//:zerolog",
18 ],
19)
20
21go_test(
22 name = "approval_test",
23 srcs = [
24 "approve_test.go",
25 "evaluate_test.go",
26 "parse_test.go",
27 ],
28 embed = [":approval"],
29 deps = [
30 "//pkg/f8n/devinfra/repo/owners/policybot/policy/common",
31 "//pkg/f8n/devinfra/repo/owners/policybot/policy/predicate",
32 "//pkg/f8n/devinfra/repo/owners/policybot/pull",
33 "//pkg/f8n/devinfra/repo/owners/policybot/pull/pulltest",
34 "@com_github_rs_zerolog//:zerolog",
35 "@com_github_stretchr_testify//assert",
36 "@com_github_stretchr_testify//require",
37 "@in_gopkg_yaml_v2//:yaml_v2",
38 ],
39)
View as plain text