Automatically merge verified and tested GitHub Pull Requests

前端 未结 6 1287
醉话见心
醉话见心 2021-02-04 11:42

I\'d like to automatically (i.e. from Jenkins) merge a GitHub pull request that has been approved by a person and has been tested successfully; in other words, when all THREE of

6条回答
  •  耶瑟儿~
    2021-02-04 11:49

    You can use Mergify to do exactly this, since this is what it has been created for. Just set up a minimal .mergify.yml file in your repository:

    rules:
      default:
        protection:
          required_status_checks:
            context:
              - continuous-integration/travis/pr
          required_pull_request_reviews:
            required_approving_review_count: 1
    

    And you'll be good to go.

    (disclaimer: I'm one of the Mergify founders)

提交回复
热议问题