get_commits {GitStats} | R Documentation |
Get data on commits
Description
List all commits from all repositories for an organization or a vector of repositories.
Usage
get_commits(
gitstats_object,
since = NULL,
until = Sys.Date() + lubridate::days(1),
cache = TRUE,
verbose = is_verbose(gitstats_object),
progress = verbose
)
Arguments
gitstats_object |
A GitStats object. |
since |
A starting date. |
until |
An end date. |
cache |
A logical, if set to |
verbose |
A logical, |
progress |
A logical, by default set to |
Value
A data.frame.
Examples
## Not run:
my_gitstats <- create_gitstats() %>%
set_github_host(
token = Sys.getenv("GITHUB_PAT"),
repos = c("openpharma/DataFakeR", "openpharma/visR")
) %>%
set_gitlab_host(
token = Sys.getenv("GITLAB_PAT_PUBLIC"),
orgs = "mbtests"
)
get_commits(my_gitstats, since = "2018-01-01")
## End(Not run)
[Package GitStats version 2.1.1 Index]