Skip to content

Commit

Permalink
Try fix cmd-checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekbanas committed Oct 2, 2023
1 parent 75ef093 commit 9ad928a
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions R/GitHost.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,19 @@ GitHost <- R6::R6Class("GitHost",
#' @param repos_table A table of repositories.
#' @return A table of repositories with added information on contributors.
pull_repos_contributors = function(repos_table) {
repos_table <- repos_table %>%
dplyr::filter(grepl(gsub("/v+.*", "", private$api_url), api_url))
repos_table <- purrr::map_dfr(private$engines, function (engine) {
if (inherits(engine, "EngineRest")) {
engine$pull_repos_contributors(
repos_table
)
} else {
NULL
}
})
if (!is.null(repos_table) && nrow(repos_table) > 0) {
repos_table <- repos_table %>%
dplyr::filter(grepl(gsub("/v+.*", "", private$api_url), api_url))
repos_table <- purrr::map_dfr(private$engines, function (engine) {
if (inherits(engine, "EngineRest")) {
engine$pull_repos_contributors(
repos_table
)
} else {
NULL
}
})
}
},

#' @description A method to get information on commits.
Expand Down

0 comments on commit 9ad928a

Please sign in to comment.