Pulls data on all repositories for an organization, individual user or those with a given text in code blobs (with_code
parameter) or a file (with_files
parameter) and parse it into table format.
get_repos(
gitstats,
add_contributors = TRUE,
with_code = NULL,
in_files = NULL,
with_files = NULL,
cache = TRUE,
verbose = is_verbose(gitstats),
progress = verbose
)
Arguments
A GitStats object.
A logical parameter to decide whether to add information about repositories' contributors to the repositories output (table). If set to FALSE
it makes function run faster as, in the case of org
search mode, it reaches only GraphQL
endpoint with a query on repositories, and in the case of code
search mode it reaches only repositories REST API
endpoint. However, the pitfall is that the result does not convey information on contributors.
When set to TRUE
(by default), GitStats
iterates additionally over pulled repositories and reaches to the contributors APIs
, which makes it slower, but gives additional information.
A character vector, if defined, GitStats will pull repositories with specified code phrases in code blobs.
A character vector of file names. Works when with_code
is set - then it searches code blobs only in files passed to in_files
parameter.
A character vector, if defined, GitStats will pull repositories with specified files.
A logical, if set to TRUE
GitStats will retrieve the last result from its storage.
A logical, TRUE
by default. If FALSE
messages and printing output is switched off.
A logical, by default set to verbose
value. If FALSE
no cli
progress bar will be displayed.
if (FALSE) { # \dontrun{
my_gitstats <- create_gitstats() %>%
set_github_host(
token = Sys.getenv("GITHUB_PAT"),
orgs = c("r-world-devs", "openpharma")
) %>%
set_gitlab_host(
token = Sys.getenv("GITLAB_PAT_PUBLIC"),
orgs = "mbtests"
)
get_repos(my_gitstats)
get_repos(my_gitstats, add_contributors = FALSE)
get_repos(my_gitstats, with_code = "Shiny", in_files = "renv.lock")
get_repos(my_gitstats, with_files = "DESCRIPTION")
} # }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4