From 9cf6572b90482ba6a39495a89732134951b06577 Mon Sep 17 00:00:00 2001 From: banasm Date: Thu, 28 Mar 2024 12:29:21 +0000 Subject: [PATCH] Fix spelling and cmd check notes. --- NAMESPACE | 3 +++ NEWS.md | 2 +- R/GitStats.R | 1 + R/utils.R | 2 ++ inst/WORDLIST | 3 +++ 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/NAMESPACE b/NAMESPACE index 56a45f6b..6eca1160 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -36,6 +36,7 @@ importFrom(httr2,req_headers) importFrom(httr2,req_perform) importFrom(httr2,request) importFrom(httr2,resp_body_json) +importFrom(lubridate,floor_date) importFrom(magrittr,"%>%") importFrom(purrr,keep) importFrom(purrr,map) @@ -44,3 +45,5 @@ importFrom(rlang,"%||%") importFrom(rlang,expr) importFrom(stringr,str_length) importFrom(stringr,str_replace) +importFrom(utils,URLdecode) +importFrom(utils,URLencode) diff --git a/NEWS.md b/NEWS.md index 2c11dfc4..b64d4cd5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -21,7 +21,7 @@ ## Minor features: -- Commits response consists now of two new columns: `author_login` and `author_name` ([#332](https://github.com/r-world-devs/GitStats/issues/332)). This is due to the mix of github/gitlab handles and display names in the `author` column (the original author `name` field in commits API response). +- Commits response consists now of two new columns: `author_login` and `author_name` ([#332](https://github.com/r-world-devs/GitStats/issues/332)). This is due to the mix of GitHub/GitLab handles and display names in the `author` column (the original author `name` field in commits API response). - Use stored repositories when pulling commits or files ([#159](https://github.com/r-world-devs/GitStats/issues/159)). - Improve printing `GitStats` object - now when you return `GitStats` object in console, it prints `GitStats` data divided into sections to give more readable information to user: `scanning scope` (organizations, repositories and files), `search settings` (searched phrase, language, team name) and `storage` (the output tables stored in `GitStats` with basic information on dimensions) ([#329](https://github.com/r-world-devs/GitStats/issues/329)). diff --git a/R/GitStats.R b/R/GitStats.R index 58b38fac..973d4ce0 100644 --- a/R/GitStats.R +++ b/R/GitStats.R @@ -3,6 +3,7 @@ #' @importFrom cli cli_alert_info cli_alert_success cli_alert_warning col_yellow #' @importFrom dplyr glimpse #' @importFrom magrittr %>% +#' @importFrom lubridate floor_date #' @importFrom purrr map map_chr #' #' @title A statistics platform for Git hosts diff --git a/R/utils.R b/R/utils.R index a086a209..b448256a 100644 --- a/R/utils.R +++ b/R/utils.R @@ -58,6 +58,8 @@ standardize_dates <- function(dates) { purrr::discard(dates, is.null) %>% purrr::map_vec(as.POSIXct) } +#' @importFrom utils URLencode URLdecode + #' @noRd #' @description Apply url encoding to string url_encode <- function(url) { diff --git a/inst/WORDLIST b/inst/WORDLIST index 995a6339..6d88cef3 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -1,6 +1,7 @@ Acknowledgement CMD Codecov +devs EngineGraphQL EngineGraphQLGitHub EngineGraphQLGitLab @@ -14,6 +15,7 @@ GitHost GitLab GitLab's GithubMetrics +gitstats GraphQL Igras Krystian @@ -29,6 +31,7 @@ magrittr organisations orgs param +POSIXct plotly repo repos