| load("@rules_go//go:def.bzl", "go_library") | |
| load("//bazel/go:go_test.bzl", "go_test") | |
| go_library( | |
| name = "notifier", | |
| srcs = [ | |
| "filter.go", | |
| "notifier.go", | |
| "router.go", | |
| ], | |
| importpath = "go.skia.org/infra/go/notifier", | |
| visibility = ["//visibility:public"], | |
| deps = [ | |
| "//go/chatbot", | |
| "//go/common", | |
| "//go/email", | |
| "//go/issues", | |
| "//go/sklog", | |
| "//go/util", | |
| "@com_google_cloud_go_pubsub//:pubsub", | |
| "@org_chromium_go_luci//mailer/api/mailer", | |
| "@org_golang_x_sync//errgroup", | |
| ], | |
| ) | |
| go_test( | |
| name = "notifier_test", | |
| srcs = [ | |
| "notifier_test.go", | |
| "router_test.go", | |
| ], | |
| embed = [":notifier"], | |
| deps = [ | |
| "//go/deepequal/assertdeep", | |
| "@com_github_stretchr_testify//require", | |
| ], | |
| ) |