...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "policy",
5 srcs = ["policy.go"],
6 importpath = "edge-infra.dev/pkg/f8n/devinfra/repo/owners/policybot/policy",
7 visibility = ["//visibility:public"],
8 deps = [
9 "//pkg/f8n/devinfra/repo/owners/policybot/policy/approval",
10 "//pkg/f8n/devinfra/repo/owners/policybot/policy/common",
11 "//pkg/f8n/devinfra/repo/owners/policybot/policy/disapproval",
12 "//pkg/f8n/devinfra/repo/owners/policybot/pull",
13 "@com_github_pkg_errors//:errors",
14 ],
15)
16
17go_test(
18 name = "policy_test",
19 srcs = ["policy_test.go"],
20 embed = [":policy"],
21 deps = [
22 "//pkg/f8n/devinfra/repo/owners/policybot/policy/common",
23 "//pkg/f8n/devinfra/repo/owners/policybot/pull",
24 "//pkg/f8n/devinfra/repo/owners/policybot/pull/pulltest",
25 "@com_github_stretchr_testify//assert",
26 "@com_github_stretchr_testify//require",
27 ],
28)
View as plain text