vsts_repo: Azure DevOps Project Repositories

Description Usage Arguments Details Examples

Description

These functions will allow you to scrape project information from Azure DevOps.

Usage

1
2
3
4
5
vsts_get_repos(domain, project, auth_key, quiet = FALSE)

vsts_create_repo(domain, project, repo, auth_key, quiet = FALSE)

vsts_delete_repo(domain, project, repo, auth_key, quiet = FALSE)

Arguments

domain

The name of the Azure DevOps organization

project

Project ID or project name

auth_key

authentication key generated by using vsts_auth_key

quiet

logical whether want general running information from printing. Any issue with the API call will still show up if set to TRUE

repo

the name of the repository in project to look at. Leave as "" to get all repositories within all projects of the domain

Details

For more information about repository API calls check https://docs.microsoft.com/en-us/rest/api/azure/devops/git.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# Add in own details to get a non-NULL output
auth_key <- vsts_auth_key("<username>", "<password>")

# Get repo list
vsts_get_repos("domain", "project", auth_key)

# Create new repo
vsts_create_repo("domain", "project", "repo", auth_key)

# Delete existing repo
vsts_delete_repo("domain", "project", "repo", auth_key)

## End(Not run)

vstsr documentation built on Nov. 9, 2021, 1:07 a.m.