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