load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "common", srcs = [ "actor.go", "evaluate.go", "methods.go", "predicateresult.go", "regexp.go", "result.go", "trigger.go", ], importpath = "edge-infra.dev/pkg/f8n/devinfra/repo/owners/policybot/policy/common", visibility = ["//visibility:public"], deps = [ "//pkg/f8n/devinfra/repo/owners/policybot/pull", "@com_github_pkg_errors//:errors", ], ) go_test( name = "common_test", srcs = [ "actor_test.go", "methods_test.go", "regexp_test.go", "trigger_test.go", ], embed = [":common"], deps = [ "//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", "@in_gopkg_yaml_v2//:yaml_v2", ], )