From 2ef084dd6bdf707aec5f181d72d9dde031591be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bana=C5=9B?= Date: Wed, 1 Apr 2026 10:47:57 +0000 Subject: [PATCH 1/4] Add CRAN status and downloads badges to README Closes #598 Co-authored-by: Ona --- README.Rmd | 2 ++ README.md | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/README.Rmd b/README.Rmd index 51b72115..eb422d95 100644 --- a/README.Rmd +++ b/README.Rmd @@ -18,6 +18,8 @@ knitr::opts_chunk$set( [![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental) +[![CRAN status](https://www.r-pkg.org/badges/version/GitStats)](https://CRAN.R-project.org/package=GitStats) +[![CRAN downloads](https://cranlogs.r-pkg.org/badges/grand-total/GitStats)](https://CRAN.R-project.org/package=GitStats) [![R-CMD-check](https://github.com/r-world-devs/GitStats/workflows/R-CMD-check/badge.svg)](https://github.com/r-world-devs/GitStats/actions) [![Codecov test coverage](https://codecov.io/gh/r-world-devs/GitStats/branch/devel/graph/badge.svg)](https://app.codecov.io/gh/r-world-devs/GitStats?branch=devel) diff --git a/README.md b/README.md index 6acd5db9..d6b6ca35 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ [![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental) +[![CRAN +status](https://www.r-pkg.org/badges/version/GitStats)](https://CRAN.R-project.org/package=GitStats) +[![CRAN +downloads](https://cranlogs.r-pkg.org/badges/grand-total/GitStats)](https://CRAN.R-project.org/package=GitStats) [![R-CMD-check](https://github.com/r-world-devs/GitStats/workflows/R-CMD-check/badge.svg)](https://github.com/r-world-devs/GitStats/actions) [![Codecov test coverage](https://codecov.io/gh/r-world-devs/GitStats/branch/devel/graph/badge.svg)](https://app.codecov.io/gh/r-world-devs/GitStats?branch=devel) From fbcb19cdf9a743f1a5eae0470ce361c3f049f759 Mon Sep 17 00:00:00 2001 From: Maciej Banas Date: Wed, 1 Apr 2026 13:32:20 +0000 Subject: [PATCH 2/4] Bump version, update NEWS. --- DESCRIPTION | 2 +- NEWS.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index b7bdfed5..29d4cdfa 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: GitStats Title: Standardized Git Repository Data -Version: 2.4.0.9007 +Version: 2.5.0 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 8e07c162..c2313906 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# GitStats 2.4.0.9000 +# GitStats 2.5.0 - Fixed `get_repos()` returning `NA` for `commit_sha` on archived GitLab projects. When the GraphQL API returns `null` for `lastCommit`, a REST Branches API fallback can now retrieve the SHA. Use `fill_empty_sha = TRUE` in `get_repos()` to enable this ([#746](https://github.com/r-world-devs/GitStats/issues/746)). - Added optional parallel processing for API calls via `mirai` package. Use `set_parallel()` to enable concurrent data fetching across repositories and organizations ([#736](https://github.com/r-world-devs/GitStats/issues/736)). @@ -9,7 +9,7 @@ - Added `remove_postgres_storage()` and `remove_sqlite_storage()` to fully remove a database storage backend — the PostgreSQL variant drops the GitStats schema, the SQLite variant deletes the database file — and revert to local storage ([#759](https://github.com/r-world-devs/GitStats/issues/759)). - Added `get_storage_metadata()` to retrieve metadata (R classes, custom attributes, column types) for a stored table ([#748](https://github.com/r-world-devs/GitStats/issues/748)). - Fixed slow `get_repos()` for GitLab when specific repos are set. Previously, the `repos_by_user` GraphQL query searched the entire GitLab instance; now repos are queried directly by `fullPath` ([#750](https://github.com/r-world-devs/GitStats/issues/750)). -- Sped up vignettes generation ([#504](https://github.com/r-world-devs/GitStats/issues/504)). +- Sped up vignettes generation ([#504](https://github.com/r-world-devs/GitStats/issues/504), [@marcinkowskak](https://github.com/marcinkowskak)). # GitStats 2.4.0 From b67376e07aeb2b8743a41425b20401c29955baec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bana=C5=9B?= Date: Wed, 1 Apr 2026 13:40:54 +0000 Subject: [PATCH 3/4] Update NEWS.md with 2.5.0 release summary Co-authored-by: Ona --- NEWS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index 67848266..5f64c59d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # GitStats 2.5.0 +This release introduces external storage backends (PostgreSQL and SQLite) for persisting pulled data across sessions, and optional parallel processing via `mirai` for faster API calls. It also brings several performance improvements, including a faster file tree retrieval and optimized GitLab repository queries. + - Added `add_languages` parameter to `get_repos()` (`TRUE` by default). When set to `FALSE`, languages data is excluded from the output and the GitLab REST languages API calls are skipped, speeding up the process. - Fixed `get_repos()` returning `NA` for `commit_sha` on archived GitLab projects. When the GraphQL API returns `null` for `lastCommit`, a REST Branches API fallback can now retrieve the SHA. Use `fill_empty_sha = TRUE` in `get_repos()` to enable this ([#746](https://github.com/r-world-devs/GitStats/issues/746)). - Added optional parallel processing for API calls via `mirai` package. Use `set_parallel()` to enable concurrent data fetching across repositories and organizations ([#736](https://github.com/r-world-devs/GitStats/issues/736)). From c41a9687d9a8eb404cf1cb32d7d576f09db34b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bana=C5=9B?= Date: Thu, 2 Apr 2026 08:51:57 +0000 Subject: [PATCH 4/4] Gate store_data vignette eval on token availability Skip chunk evaluation when GITHUB_PAT or GITLAB_PAT_PUBLIC are missing so the vignette builds on CRAN without errors. Co-authored-by: Ona --- vignettes/store_data.Rmd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vignettes/store_data.Rmd b/vignettes/store_data.Rmd index 423edae1..d9287177 100644 --- a/vignettes/store_data.Rmd +++ b/vignettes/store_data.Rmd @@ -8,11 +8,13 @@ vignette: > --- ```{r, include = FALSE} +has_tokens <- nzchar(Sys.getenv("GITHUB_PAT")) && nzchar(Sys.getenv("GITLAB_PAT_PUBLIC")) knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.width = 7, - fig.height = 4 + fig.height = 4, + eval = has_tokens ) ```