git - 是否可以锁定 bitbucket 上的 pullrequest 以进行进一步提交?

标签 git bitbucket pull-request

背景:bitbucket 上的 pull 请求是为 git 存储库中的某个分支创建的。然后邀请审阅者审阅代码并批准它。

如果在审查 pull 请求时将另一个提交推送到该分支,则审查者可能会看到该分支的不同版本,或者审查者可能会审查代码更改之前的代码。如果推送新提交,也不会撤回批准。

  1. 我可以将 pull 请求锁定到一次提交吗?
  2. 能否避免代码被更新而没有被审阅者注意到的情况?

相关:

  1. 创建时,分支的提交消息包含在 pull 请求中。如果另一个提交被推送到分支,有没有办法更新 pull 请求的那部分?

如果对任何一个问题是肯定的,请详细说明如何。

最佳答案

至少对于第 2 项似乎有某种支持(现在)。

如果使用 Merge checks这是一个“高级”功能,然后您可以在更改源分支后重置批准。

来自链接页面:

Setting: Reset approvals when the source branch of a pull request is modified

Result: If there are any changes to the source branch of the pull request, the approvals will be reset, and the approvers will have to review and approve the pull request again. in order to merge if you've selected a specific number of approvals.

关于git - 是否可以锁定 bitbucket 上的 pullrequest 以进行进一步提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40019028/

相关文章:

git - 带有 fork 的 Git LFS 的工作流程是什么?

git - Bash shell 脚本错误 sh : [: missing `]'

github - 合并的拉取请求在搜索结果中显示为打开

github - 我在 GitHub 上哪里可以看到我的拉取请求?

command-line - 如何在 Bitbucket 中通过命令行发送拉取请求?

git - 使用 SmartGit 时如何更改 core.autocrlf?

git - 标记提交以在 Git 中对它们进行分组

混帐 : Pull is not possible because you have unmerged files

git - 在 git2go (libgit2) 中查找包含指定 blob 对象的提交

svn - Windows 上的 Git 和 SVN