config.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ## @file
  2. # Mergify YML file that automatically merges a GitHub pull request against
  3. # edk2-ci if all of the GitHub branch protections have passed. It also
  4. # contains rules to:
  5. # * auto close branches that are not from an EDK II Maintainer
  6. # * post a comment on pull requests that have merge conflicts.
  7. # * post a comment on pull requests that have PatchCheck.py errors.
  8. #
  9. # Configuration Notes:
  10. # * Update the 'base=edk2-ci' statements with the name of the branch to merge
  11. # pull requests.
  12. #
  13. # * Update the 'status-failure' statement with the name of the name of the Azure
  14. # Pipelines Build that performs the EDK II Maintainer check.
  15. #
  16. # * This file must be checked into the 'default' branch of a repo. Copies
  17. # of this file on other branches of a repo are ignored by Mergify.
  18. #
  19. # Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.<BR>
  20. # SPDX-License-Identifier: BSD-2-Clause-Patent
  21. #
  22. # https://github.com/apps/mergify
  23. # https://doc.mergify.io/
  24. #
  25. ##
  26. queue_rules:
  27. - name: default
  28. conditions:
  29. - base~=(^main|^master|^stable/)
  30. - label=push
  31. pull_request_rules:
  32. - name: Automatically merge a PR when all required checks pass and 'push' label is present
  33. conditions:
  34. - base~=(^main|^master|^stable/)
  35. - label=push
  36. actions:
  37. queue:
  38. method: rebase
  39. name: default
  40. - name: Post a comment on a PR that can not be merged due to a merge conflict
  41. conditions:
  42. - base~=(^main|^master|^stable/)
  43. - conflict
  44. actions:
  45. comment:
  46. message: PR can not be merged due to conflict. Please rebase and resubmit