Azure DevOps:跨存储库拉取请求?

Azure DevOps : Pull Request across the Repositories?

我不确定人们是否通常在同一个存储库中维护生产分支和其他 Development/Developer 特定分支,但我想要单独的仅生产存储库。

现在,在那种情况下,我如何不断更新我的产品 repository/branch 中的代码?

如果是同一个 Repository,那么我可以跨分支创建 Pull 请求,并保持分支/代码最新或同步。

但是,如何将新的代码修改推送到不同存储库中的分支? 对于初始副本,有"Clone"功能,但我不知道是否也可以拉动。

Azure DevOps : Pull Request across the Repositories?

您可以在 Azure Devops 中进行此类操作。 BUT先决条件 必须存在 Fork 当前(Repos-A)和之间的关系目标(Repos-B)回购。

换句话说,如果您想跨回购创建拉取请求,一个回购必须 从另一个回购 分叉出来。

此时,您可以在创建拉取请求时选择另一个 repos/project。


正常情况下,我们不太推荐这样的操作。在这个doc中,我们描述了一些场景:

For a very small team (2-5 developers), we recommend working in a single repo. Everyone should work in topic branches, and master should be protected with branch policies. As your team grows larger, you may find yourself outgrowing this arrangement and prefer to switch to a forking workflow.

If your repository has a large number of casual or infrequent committers (similar to an open source project), we recommend the forking workflow. Typically only core contributors to your project have direct commit rights into your repository. You should ask collaborators from outside this core set of people to work from a fork of the repository. This will isolate their changes from yours until you've had a chance to vet the work.