-
Notifications
You must be signed in to change notification settings - Fork 4
Usage in external organizations
Hugo Gruson edited this page Aug 2, 2023
·
1 revision
We're interested in hearing about you if you're using this template in our own organization. Please open a 'Show and Tell' discussion thread if you do!
Usage of this template can be measured with the following function:
identify_repos_from_template <- function(
organization = "epiverse-trace",
template = "epiverse-trace/packagetemplate"
) {
gh::gh("/orgs/{org}/repos", org = organization, per_page = 100, page = Inf) |>
purrr::map(\(x) gh::gh("/repos/{repo}", repo = x$full_name)) |>
purrr::keep(\(x) identical(x$template_repository$full_name, template)) |>
purrr::map("full_name")
}