报错“仓库不允许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
相关产品推荐
相关产品推荐

