Skip to content

Commit

Permalink
Merge pull request #585 from r-world-devs/devel
Browse files Browse the repository at this point in the history
Patch release 2.2.1
maciekbanas authored Jan 21, 2025
2 parents 7102d5c + 85f4d6c commit 7aaa0a4
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: GitStats
Title: Standardized Git Repository Data
Version: 2.2.0
Version: 2.2.1
Authors@R: c(
person(given = "Maciej", family = "Banas", email = "banasmaciek@gmail.com", role = c("aut", "cre")),
person(given = "Kamil", family = "Koziej", email = "koziej.k@gmail.com", role = "aut"),
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# GitStats 2.2.1

- Fixed pulling repositories by code when `GitStats` is set to scan whole hosts ([#583](https://github.com/r-world-devs/GitStats/issues/583)).

# GitStats 2.2.0

This release brings some substantial improvements with making it possible to scan whole organizations and particular repositories for one host at the same time, boosting function to prepare commits statistics and simplifying workflow for getting files.
5 changes: 2 additions & 3 deletions R/EngineRestGitHub.R
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ EngineRestGitHub <- R6::R6Class(
output = "table_full",
verbose = TRUE,
progress = TRUE) {
if (!is.null(org)) {
if (is.null(repos)) {
search_result <- private$search_for_code(
code = code,
org = org,
@@ -64,8 +64,7 @@ EngineRestGitHub <- R6::R6Class(
verbose = verbose,
progress = progress
)
}
if (!is.null(repos)) {
} else {
search_result <- private$search_repos_for_code(
code = code,
repos = repos,
8 changes: 5 additions & 3 deletions R/EngineRestGitLab.R
Original file line number Diff line number Diff line change
@@ -70,15 +70,17 @@ EngineRestGitLab <- R6::R6Class(
verbose = TRUE,
progress = TRUE) {
if (!is.null(org)) {
org <- utils::URLencode(org, reserved = TRUE)
}
if (is.null(repos)) {
search_response <- private$search_for_code(
code = code,
filename = filename,
in_path = in_path,
org = utils::URLencode(org, reserved = TRUE),
org = org,
verbose = verbose
)
}
if (!is.null(repos)) {
} else {
search_response <- private$search_repos_for_code(
code = code,
filename = filename,

0 comments on commit 7aaa0a4

Please sign in to comment.