From c7c1fd8891e8f9924c6cafa4f6c4aeb144f5a207 Mon Sep 17 00:00:00 2001 From: Maciej Banas Date: Mon, 4 May 2026 10:13:52 +0000 Subject: [PATCH 1/2] Bump version. --- DESCRIPTION | 2 +- NEWS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index e8bc2fc1..d5316f89 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: GitStats Title: Standardized Git Repository Data -Version: 2.5.1.9001 +Version: 2.5.2 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"), diff --git a/NEWS.md b/NEWS.md index 1984ae7f..b6e5a2d4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# GitStats (development version) +# GitStats 2.5.2 ## Improvements From a2d380f2687bfb6a9411925e32489104c5692b33 Mon Sep 17 00:00:00 2001 From: Maciej Banas Date: Tue, 5 May 2026 10:35:54 +0000 Subject: [PATCH 2/2] Fix mocks. --- tests/testthat/test-01-get_repos-GitLab.R | 6 +++--- tests/testthat/test-GitHost-helpers.R | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testthat/test-01-get_repos-GitLab.R b/tests/testthat/test-01-get_repos-GitLab.R index fec62c50..e9b859f8 100644 --- a/tests/testthat/test-01-get_repos-GitLab.R +++ b/tests/testthat/test-01-get_repos-GitLab.R @@ -1081,7 +1081,7 @@ test_that("`set_owner_type()` identifies organization (group) type", { ) mockery::stub( gitlab_resolve_owner_type, - "self$gql_response", + "graphql_response", gl_group_response ) result <- gitlab_resolve_owner_type( @@ -1103,7 +1103,7 @@ test_that("`set_owner_type()` identifies user type", { ) mockery::stub( gitlab_resolve_owner_type, - "self$gql_response", + "graphql_response", gl_user_response ) result <- gitlab_resolve_owner_type( @@ -1119,7 +1119,7 @@ test_that("`set_owner_type()` identifies user type", { test_that("`set_owner_type()` returns 'not found' when owner does not exist", { mockery::stub( gitlab_resolve_owner_type, - "self$gql_response", + "graphql_response", list("data" = list("user" = NULL, "group" = NULL)) ) result <- gitlab_resolve_owner_type( diff --git a/tests/testthat/test-GitHost-helpers.R b/tests/testthat/test-GitHost-helpers.R index 59a83835..95e350c3 100644 --- a/tests/testthat/test-GitHost-helpers.R +++ b/tests/testthat/test-GitHost-helpers.R @@ -1,7 +1,7 @@ test_that("set_owner_types sets attributes to owners list", { mockery::stub( github_resolve_owner_type, - "self$gql_response", + "graphql_response", test_fixtures$github_user_login ) owner <- github_resolve_owner_type( @@ -15,7 +15,7 @@ test_that("set_owner_types sets attributes to owners list", { mockery::stub( github_resolve_owner_type, - "self$gql_response", + "graphql_response", test_fixtures$github_org_login ) owner <- github_resolve_owner_type(