Automatic merge of pull requests on Github without the merge bubble

后端 未结 2 1338
陌清茗
陌清茗 2021-01-31 15:31

The \"This pull request can be automatically merged [Merge pull request]\" button in github is great -- except that it creates merge bubbles.

Is there a way to use this

2条回答
  •  再見小時候
    2021-01-31 16:01

    And.. they fixed it!

    See GitHub's blog on squashing your merge commits

    If you go to the settings for your repository, you'll see a "Merge Button" section (under Options). It will have 2 buttons available:

    Allow merge commits
    Add all commits from the head branch to the base branch with a merge commit.

    and

    Allow squash merging
    Combine all commits from the head branch into a single commit in the base branch.

    If you uncheck the first option (and left the Allow squash merging checked), PR "merges" will result in rebase and squashes.

提交回复
热议问题