mergify.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. pull_request_rules:
  2. - name: automatic rebase for PR marked as “keep-up-to-date“
  3. conditions:
  4. - -draft # filter-out draft PRs
  5. - label="keep-up-to-date"
  6. - "label!=CI:fail" # exclude PRs with "CI::fail" label
  7. actions:
  8. update:
  9. - name: Rebase pull requests once when it's labeled with `rebase`
  10. conditions:
  11. - label=rebase
  12. actions:
  13. rebase: {}
  14. label:
  15. remove:
  16. - rebase
  17. - name: Automatic merge when CI passes
  18. conditions:
  19. - check-success=All Garnix checks
  20. actions:
  21. merge:
  22. method: merge
  23. delete_head_branch:
  24. - name: Warn on conflicts
  25. conditions:
  26. - conflict
  27. actions:
  28. comment:
  29. message: "@{{author}} this pull request is now in conflict 😩"
  30. label:
  31. toggle:
  32. - conflict
  33. - name: Toggle labels based on CI state
  34. conditions:
  35. - check-failure=All Garnix checks
  36. actions:
  37. label:
  38. toggle:
  39. - "CI:fail"
  40. - name: Add "WIP" label when the title contains "WIP"
  41. conditions:
  42. - title~=WIP
  43. actions:
  44. label:
  45. toggle:
  46. - WIP