在没有合并泡泡的情况下自动合并Github上的请求 [英] Automatic merge of pull requests on Github without the merge bubble

查看:217
本文介绍了在没有合并泡泡的情况下自动合并Github上的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个拉取请求可以自动合并[合并拉请求]在github中的按钮是伟大的 - 除了它创建合并泡沫。

有没有办法在github中使用这个按钮/功能而不创建合并泡泡? 他们修正了它!



请参阅 GitHub的博客,以压缩您的合并提交



如果您转到存储库的设置,您会看到一个合并按钮部分(在选项下)。它将有2个按钮可供使用:



允许合并提交

将所有提交从头分支添加到基本分支与合并提交。





允许压缩合并
$

如果您取消选中第一个选项(并且保留了允许的压缩合并勾选),公关合并将导致变质和南瓜。

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 button/functionality in github without it creating merge bubbles?

解决方案

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.

这篇关于在没有合并泡泡的情况下自动合并Github上的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆