You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

报错“仓库不允许Pull Request自动合并”,如何启用该功能?

解决GitHub仓库PR自动合并权限问题

执行gh pr merge --merge --auto "33"时出现如下报错:

GraphQL: ["Pull request Auto merge is not allowed for this repository"] (enablePullRequestAutoMerge)
Error: Process completed with exit code 1.

启用Pull Request自动合并功能的操作步骤:

  • 打开目标仓库主页,点击顶部的「Settings」(设置)选项卡
  • 向下滚动找到「Pull Requests」(拉取请求)板块
  • 在该板块中找到「Allow auto-merge」(允许自动合并)选项并勾选
  • 滚动到页面底部,点击「Save changes」(保存更改)完成设置

内容的提问来源于stack exchange,提问作者basickarl

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.13 22:13:09