BUILD 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. load("@py_deps//:requirements.bzl", "requirement")
  5. py_library(
  6. name = "github_helpers",
  7. srcs = ["github_helpers.py"],
  8. deps = [requirement("gql")],
  9. )
  10. py_test(
  11. name = "github_helpers_test",
  12. srcs = ["github_helpers_test.py"],
  13. python_version = "PY3",
  14. deps = [":github_helpers"],
  15. )
  16. py_binary(
  17. name = "pr_comments",
  18. srcs = ["pr_comments.py"],
  19. python_version = "PY3",
  20. deps = ["github_helpers"],
  21. )
  22. py_test(
  23. name = "pr_comments_test",
  24. srcs = ["pr_comments_test.py"],
  25. python_version = "PY3",
  26. deps = [":pr_comments"],
  27. )
  28. py_binary(
  29. name = "update_label_access",
  30. srcs = ["update_label_access.py"],
  31. python_version = "PY3",
  32. deps = [
  33. "github_helpers",
  34. requirement("pygithub"),
  35. ],
  36. )
  37. py_test(
  38. name = "update_label_access_test",
  39. srcs = ["update_label_access_test.py"],
  40. python_version = "PY3",
  41. deps = [
  42. ":pr_comments",
  43. ":update_label_access",
  44. ],
  45. )