为什么在GitHub“拉动请求审核"中禁用“批准"按钮? [英] Why is the Approve button disabled in GitHub "pull request review"?

查看:79
本文介绍了为什么在GitHub“拉动请求审核"中禁用“批准"按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题背景:

到目前为止,我是GitHub存储库的唯一所有者.我将代码从系统提交到了一个名为release的分支(实际上,它是基于develop分支的标记,如果有关系的话).在GitHub中,我创建了一个请求请求,其中基本分支为master ,而 compare分支为发布.

So far I am the sole owner of a GitHub repo. I committed the code from my system to a branch called release (actually its a tag based on develop branch, if that matters). In GitHub, I created a pull request where base branch is master and compare branch is release.

但是我只能允许对评论发表评论,不允许批准.可能是什么原因?

But I am only allowed to comment on review, not allowed to approve. What may be the reason?

注意:没有合并冲突,在创建拉取请求时,显示了可能合并的绿色信号.

Note: There is no merge conflicts and while creating the pull request the green signal of merging possible was displayed.

这是我保护master分支的方式:

Here is how the master branch is protected by me:

推荐答案

如果您是提交拉取请求的人,则无法批准或请求对此拉取请求进行更改. 仅当其他人要求执行此操作时,此功能才可用.

If you were the one who has committed the pull request you cannot approve or request changes on this pull request. It's only available when someone else requested such action.

因此,您唯一的选择是对其进行评论.

So your only option is to comment it.

这篇关于为什么在GitHub“拉动请求审核"中禁用“批准"按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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