Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据 GitHub 的文档,在我的 repo 设置中启用“允许自动合并”后,我应该会在我的拉取请求中看到一个显示“启用自动合并”的按钮。我不。
我已经打开了新的 PR,切换了允许的合并类型,并将我的回购可见性切换为公开,但没有任何效果。
我通过对主分支应用分支保护来解决这个问题。在那之后提出的拉取请求现在显示“启用自动合并”按钮。
这是有道理的,因为如果基础分支不受保护,PR 将在引发后立即合并,因为状态检查通常需要至少几秒钟来报告“待定”状态。