vsts_get_repos {vstsr}R Documentation

Azure DevOps Project Repositories

Description

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

Usage

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

## 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)


[Package vstsr version 1.1.0 Index]