Skip to main content
Get the details of a git repository. Required Permissions:
  • vso.code
External DocumentationTo learn more, visit the Azure DevOps documentation.

Parameters

ParameterDescription
OrganizationThe name of the organization.
ProjectThe project ID or project name.
Repository IDThe name or ID of the repository.

Example Output

{
	"serverUrl": "https://dev.azure.com/fabrikam",
	"collection": {
		"id": "e22ddea7-989e-455d-b46a-67e991b04714",
		"name": "fabrikam",
		"url": "https://dev.azure.com/fabrikam/_apis/projectCollections/e22ddea7-989e-455d-b46a-67e991b04714"
	},
	"repository": {
		"id": "2f3d611a-f012-4b39-b157-8db63f380226",
		"name": "FabrikamCloud",
		"url": "https://dev.azure.com/fabrikam/_apis/git/repositories/2f3d611a-f012-4b39-b157-8db63f380226",
		"project": {
			"id": "3b3ae425-0079-421f-9101-bcf15d6df041",
			"name": "FabrikamCloud",
			"url": "https://dev.azure.com/fabrikam/_apis/projects/3b3ae425-0079-421f-9101-bcf15d6df041",
			"state": 1,
			"revision": 411518573
		},
		"remoteUrl": "https://dev.azure.com/fabrikam/FabrikamCloud/_git/FabrikamCloud"
	}
}

Workflow Library Example

Get Repository with Azure Devops and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop