load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "approval", srcs = [ "approve.go", "evaluate.go", "parse.go", ], importpath = "edge-infra.dev/pkg/f8n/devinfra/repo/owners/policybot/policy/approval", visibility = ["//visibility:public"], deps = [ "//pkg/f8n/devinfra/repo/owners/policybot/policy/common", "//pkg/f8n/devinfra/repo/owners/policybot/policy/predicate", "//pkg/f8n/devinfra/repo/owners/policybot/pull", "@com_github_pkg_errors//:errors", "@com_github_rs_zerolog//:zerolog", ], ) go_test( name = "approval_test", srcs = [ "approve_test.go", "evaluate_test.go", "parse_test.go", ], embed = [":approval"], deps = [ "//pkg/f8n/devinfra/repo/owners/policybot/policy/common", "//pkg/f8n/devinfra/repo/owners/policybot/policy/predicate", "//pkg/f8n/devinfra/repo/owners/policybot/pull", "//pkg/f8n/devinfra/repo/owners/policybot/pull/pulltest", "@com_github_rs_zerolog//:zerolog", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", "@in_gopkg_yaml_v2//:yaml_v2", ], )