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
TRUE
GitStats will retrieve the last result from its storage.- verbose
A logical,
TRUE
by default. IfFALSE
messages and printing output is switched off.- progress
A logical, by default set to
verbose
value. IfFALSE
nocli
progress bar will be displayed.
Examples
if (FALSE) { # \dontrun{
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")
} # }