« Azure devops api » : différence entre les versions
Apparence
Ligne 177 : | Ligne 177 : | ||
| $top || \d+ | | $top || \d+ | ||
|} | |} | ||
<kode lang='json' collapsed> | |||
{ | |||
"count": 1, | |||
"value": [ | |||
{ | |||
"pullRequestId": 66034, | |||
"status": "active", | |||
"createdBy": { | |||
"displayName": "Firstname Lastname", | |||
"id": "12345678-1234-1234-1234-123456789012", | |||
"uniqueName": "firstname.lastname@organization.net" | |||
}, | |||
"creationDate": "2020-12-16T17:41:23.5291166Z", | |||
"title": "PR title", | |||
"description": "description", | |||
"sourceRefName": "refs/heads/bugfix/sonar/branch-name", | |||
"targetRefName": "refs/heads/master", | |||
"mergeStatus": "succeeded", | |||
"isDraft": false, | |||
"mergeId": "12345678-1234-1234-1234-123456789012" | |||
} | |||
] | |||
} | |||
</kode> | |||
=== [https://docs.microsoft.com/en-us/rest/api/azure/devops/git/pull%20requests/get%20pull%20request%20by%20id?view=azure-devops-rest-6.0 Get Pull Request By Id] === | |||
<pre>GET https://dev.azure.com/{organization}/{project}/_apis/git/pullrequests/{pullRequestId}?api-version=6.0</pre> | |||
<kode lang='json' collapsed> | <kode lang='json' collapsed> |
Version du 24 mars 2021 à 16:53
Links
Build
Get Build Work Items Refs
GET https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/workitems?api-version=6.0
|
Work Item
Get Work Item
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitems/{id}?$expand=relations&api-version=6.0
|
Pipeline
List
GET https://dev.azure.com/{organization}/{project}/_apis/pipelines?api-version=6.0-preview.1
|
Runs - List
GET https://dev.azure.com/{organization}/{project}/_apis/pipelines/{pipelineId}/runs?api-version=6.0-preview.1
|
Team
List
GET https://dev.azure.com/{organization}/_apis/projects/{project}/teams?api-version=6.0
|
Iteration / Sprint
List
GET https://dev.azure.com/{organization}/{project}/{team}/_apis/work/teamsettings/iterations?api-version=6.0
|
Get Iteration Work Items
GET https://dev.azure.com/{organization}/{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/workitems?api-version=6.0-preview.1
|
Task agent
Environmentdeployment Records - List
GET https://dev.azure.com/{organization}/{project}/_apis/distributedtask/environments/{environmentId}/environmentdeploymentrecords?api-version=6.0-preview.1
|
Git
Pull request
Get
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repository}/pullrequests?api-version=6.0
name | value |
---|---|
searchCriteria.creatorId | creatorId |
searchCriteria.status | active, completed, abandoned, notSet, all (active by default) |
$top | \d+ |
|
Get Pull Request By Id
GET https://dev.azure.com/{organization}/{project}/_apis/git/pullrequests/{pullRequestId}?api-version=6.0
|
Work Items - List
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repository}/pullrequests/{pullRequestId}/workitems?api-version=6.0
|