我试图在一个使用Visual Studio Code的Azure DevOps代码库中,从提交到拉取-请求/审查过程进行完全的更改。
一切都很好,直到我必须创建一个拉取请求。
我没有找到一种嵌入式的方法来做到这一点。有一个插件Pull Requests for Azure Devops,但似乎不再需要维护了。
你知道有什么其他的好方法吗?或者可能是微软可以在这个重要的功能上投资?
发布于 2020-12-14 13:53:13
正如Jessehouwing的回答所建议的,您可以使用Azure CLI创建拉取请求。
此外,您还可以使用REST API Pull Requests - Create
POST https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests?api-version=6.0以下是请求正文的示例:
{
"sourceRefName": "refs/heads/npaulk/my_work",
"targetRefName": "refs/heads/new_feature",
"title": "A new feature",
"description": "Adding a new feature"
}https://stackoverflow.com/questions/65254796
复制相似问题