load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "predicate", srcs = [ "author.go", "branch.go", "file.go", "label.go", "matches.go", "predicate.go", "predicates.go", "repository.go", "signature.go", "status.go", "title.go", ], importpath = "edge-infra.dev/pkg/f8n/devinfra/repo/owners/policybot/policy/predicate", visibility = ["//visibility:public"], deps = [ "//pkg/f8n/devinfra/repo/owners/policybot/policy/common", "//pkg/f8n/devinfra/repo/owners/policybot/pull", "@com_github_pkg_errors//:errors", ], ) go_test( name = "predicate_test", srcs = [ "author_test.go", "branch_test.go", "file_test.go", "label_test.go", "predicate_test.go", "repository_test.go", "signature_test.go", "status_test.go", "title_test.go", ], embed = [":predicate"], 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", ], )