.mergify.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. pull_request_rules:
  2. - name: automatic merge for Dependabot pull request that pass CI
  3. conditions:
  4. - author=dependabot[bot]
  5. actions:
  6. comment:
  7. message: "@dependabot merge"
  8. # REVIEW MANAGEMENT
  9. - name: ask alessandrod to review public API changes
  10. conditions:
  11. - files=xtask/public-api/aya.txt
  12. - -closed
  13. actions:
  14. comment:
  15. message: "Hey @alessandrod, this pull request changes the Aya Public API and requires your review."
  16. request_reviews:
  17. users:
  18. - alessandrod
  19. label:
  20. add:
  21. - api/needs-review
  22. # LABEL MANAGEMENT
  23. - name: warn on conflicts
  24. conditions:
  25. - conflict
  26. actions:
  27. comment:
  28. message: "@{{author}}, this pull request is now in conflict and requires a rebase."
  29. label:
  30. add:
  31. - needs-rebase
  32. - name: remove conflict label if not needed
  33. conditions:
  34. - -conflict
  35. actions:
  36. label:
  37. remove:
  38. - needs-rebase
  39. - name: add labels for aya PRs
  40. conditions:
  41. - files~=^aya/
  42. actions:
  43. label:
  44. add:
  45. - aya
  46. - name: add labels for aya-bpf PRs
  47. conditions:
  48. - files~=^(aya-ebpf-macros|ebpf/aya-ebpf(-(cty|bindings))?)/
  49. actions:
  50. label:
  51. add:
  52. - aya-bpf
  53. - name: add labels for aya-log PRs
  54. conditions:
  55. - files~=^aya-log(-common)?/
  56. actions:
  57. label:
  58. add:
  59. - aya-log
  60. - name: add labels for aya-log-ebpf PRs
  61. conditions:
  62. - files~=^(aya-log-common|ebpf/aya-log-ebpf)/
  63. actions:
  64. label:
  65. add:
  66. - aya-log
  67. - name: add labels for aya-obj PRs
  68. conditions:
  69. - files~=^aya-obj/
  70. actions:
  71. label:
  72. add:
  73. - aya-obj
  74. - name: add labels for aya-tool PRs
  75. conditions:
  76. - files~=^aya-tool/
  77. actions:
  78. label:
  79. add:
  80. - aya-tool
  81. - name: add labels for CI/Test and Automation PRs
  82. conditions:
  83. - files~=^(.github|test|xtask)/
  84. actions:
  85. label:
  86. add:
  87. - test