简体   繁体   English

Azure DevOps 存储库,共享拉取请求

[英]Azure DevOps repository, share pull requests

I have a web application project repository on Azure DevOps (.Net core API linked to a React frontend).我在 Azure DevOps 上有一个 web 应用程序项目存储库(链接到 React 前端的.Net 核心 API)。 I want to create another repository where i have a totally different user interface design for the same application features.我想创建另一个存储库,在其中我为相同的应用程序功能提供完全不同的用户界面设计。 Is there a way to synchronize both repositories and have pull requests created on the first project to be added on the second (new design) repository as well?有没有办法同步两个存储库并在第一个项目上创建拉取请求以添加到第二个(新设计)存储库中?

You cannot synchronize repositories Out of Box in Azure DevOps.您无法在Azure DevOps 中同步存储库。 But, there are many ways to achieve this goal.但是,有很多方法可以实现这一目标。 Here are 2 ways of achieving this:以下是实现此目的的 2 种方法:

  1. Have 2 repositories for different UI codes and 1 different repository with common code (shared code).有 2 个用于不同 UI 代码的存储库和 1 个具有公共代码(共享代码)的不同存储库。 This way, you can make changes and create PRs for Common Code Repo which will be used by the other repos.通过这种方式,您可以进行更改并为 Common Code Repo 创建 PR,其他 repo 将使用它们。

  2. Make changes in 1 Repo by cloning it and similarly make same changes by cloning the other repo.通过克隆它在 1 个存储库中进行更改,并通过克隆另一个存储库类似地进行相同的更改。 Now, create 2 different PRs for same code but in respective repos.现在,为相同的代码创建 2 个不同的 PR,但在各自的仓库中。

My suggestion is to go for first option as it is widely used.我的建议是 go 作为第一个选项,因为它被广泛使用。 The second option requires much manual work and havok.第二种选择需要大量的手工工作和破坏。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM