powered by
These functions will allow you to scrape git repository information from Azure DevOps.
vsts_get_commits(domain, project, repo, auth_key, query = NULL)
The name of the Azure DevOps organization.
the name of the project in domain to look at
domain
the name of the repository in project to look at
project
authentication key generated by using vsts_auth_key
vsts_auth_key
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
For more information about git repository API calls check https://docs.microsoft.com/en-us/rest/api/azure/devops/git/commits/get-commits.
# 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) # } # NOT RUN { # }
Run the code above in your browser using DataLab