vsts_get_commits: Azure DevOps Project Git Repositories

Description Usage Arguments Details Examples

View source: R/git.R

Description

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

Usage

1
vsts_get_commits(domain, project, repo, auth_key, query = NULL)

Arguments

domain

The name of the Azure DevOps organization.

project

the name of the project in domain to look at

repo

the name of the repository in project to look at

auth_key

authentication key generated by using vsts_auth_key

query

a list of extra parameters that can be sent to the API call:

branch

[character] the name of a branch in the repository (cannot combine with commit)

commit

[character] the id of a commit in the repository (cannot combine with branch)

itemPath

[character] path of an item in the repository

committer

[character] name of the person who committed the change

author

[character] name of the author

fromDate

[Date] start date to search from

toDate

[Date] end date to search from

Details

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

Examples

1
2
3
4
5
6
## Not run: 
# Add in own details to get a non-NULL output
auth_key <- vsts_auth_key("<username>", "<password>")
vsts_get_commits("domain", "project", "repo", auth_key)

## End(Not run)

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