Skip to content

Commit

Permalink
Fix pulling data for whole git platforms: names of functions are not …
Browse files Browse the repository at this point in the history
…super correct, but check_orgs_and_repos set private$scan_all which needs to be before setting up engines, as the parameter is passed to engines.
  • Loading branch information
maciekbanas committed Mar 28, 2024
1 parent 9cf6572 commit a8be04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/GitHost.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ GitHost <- R6::R6Class("GitHost",
private$check_if_public(host)
private$set_token(token)
private$set_graphql_url()
private$check_orgs_and_repos(orgs, repos)
private$setup_engines()
private$set_scanning_scope(orgs, repos)
},
Expand Down Expand Up @@ -273,9 +274,8 @@ GitHost <- R6::R6Class("GitHost",

# Set organization or repositories
set_scanning_scope = function(orgs, repos) {
private$check_orgs_and_repos(orgs, repos)
if (private$scan_all) {
cli::cli_alert_info("[{private$host}][Engine:{cli::col_yellow('GraphQL')}] Pulling all organizations...")
cli::cli_alert_info("[{private$host_name}][Engine:{cli::col_yellow('GraphQL')}] Pulling all organizations...")
private$orgs <- private$engines$graphql$pull_orgs()
} else {
if (!is.null(orgs)) {
Expand Down

0 comments on commit a8be04c

Please sign in to comment.