load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "policy", srcs = ["policy.go"], importpath = "edge-infra.dev/pkg/f8n/devinfra/repo/owners/policybot/policy", visibility = ["//visibility:public"], deps = [ "//pkg/f8n/devinfra/repo/owners/policybot/policy/approval", "//pkg/f8n/devinfra/repo/owners/policybot/policy/common", "//pkg/f8n/devinfra/repo/owners/policybot/policy/disapproval", "//pkg/f8n/devinfra/repo/owners/policybot/pull", "@com_github_pkg_errors//:errors", ], ) go_test( name = "policy_test", srcs = ["policy_test.go"], embed = [":policy"], deps = [ "//pkg/f8n/devinfra/repo/owners/policybot/policy/common", "//pkg/f8n/devinfra/repo/owners/policybot/pull", "//pkg/f8n/devinfra/repo/owners/policybot/pull/pulltest", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", ], )