organization path True string Azure DevOps 組織の名前です。 pullRequestId path True integer int32 取得する pull request の ID。 repositoryId path True string pull request のターゲット ブランチのリポジトリ ID。 project path string プロジェクト ID またはプロジェクト名 api-...
POST https://dev.azure.com/fabrikam/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses?api-version=7.1-preview.1 { "iterationId": 1, "state": "succeeded", "description": "Sample status succeeded", "context": { "name": "sample-status-2", "genre": "vsts-samples...
organization path True string Azure DevOps 组织的名称。 project path True string 项目ID 或项目名称 api-version query True string 要使用的 API 版本。 这应设置为“7.1-preview.1”才能使用此版本的 API。 $skip query integer int32 要忽略的拉取请求数。 例如,若要检索结果 101-150,请将...
PATCH https://{instance}/{collection}/{project}/_apis/git/repositories/{repositoryId}/pullrequests/{pullRequestId}?api-version=4.1 URI 参数 展开表 名称在必需类型说明 collection path True string Team Foundation Server 集合的名称。 instance path True string TFS 服务器名称 ({server:port}) p...
首先需要从拉取请求清单中获取你指定的拉取请求的API地址,例如下面的样例获取了ID为“”的一个拉取请求,属性url就是该拉取请求的详细信息接口。 Api样例:http://DevOpsServer:8080/tfs/defaultcollection/mydelegate/_apis/git/repositories/HelloWorld2/pullrequests ...
开箱即用,您可以阻止pull request的创建者和最近的pusher批准他们自己的更改,但您不能阻止每个提交到...
拉取请求(Pull Request)是Azure DevOps Server (之前称为TFS)系统中用于代码评审和分支合并的管理流程。使用拉取请求,代码评审人员可以记录记录代码评审过程中发现的问题、潜在的漏洞、创造性的亮点等。 在代码评审过程中,创建一个具有指导性的描述文档,可以帮助评审人员更好的了解评审过程中需要注意的事项,以便提高代...
the tool can display those relations in various screens, like the Build Summary page or the Work Item Form but you can also use the Azure DevOps Rest API to pull that information for your specific scenarios. The good news is that Azure DevOps provides multiple ...
The changes were pretty simple. Just swap out the Azure DevOps REST API calls to write a pull request comment for the GitHub REST API for Pull Requests. Because our code now sits in GitHub, some extra security considerations should be given to pull request...
api-version=2024-07-01.20.0 { "id": "jobId", "priority": 0, "poolInfo": { "poolId": "poolId" } } Sample response Status code: 201 Add a complex job Sample request HTTP HTTP Copy POST account.region.batch.azure.com/jobs?api-version=2024-07-01.20.0 { "id": "jobId",...