Skip to content

Commit fbaeeba

Browse files
committed
fix return value of models_over_end_dates for #87
And suppress verbose output
1 parent f253a2a commit fbaeeba

5 files changed

+8
-4
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: repometrics
22
Title: Metrics for Your Code Repository
3-
Version: 0.1.5.016
3+
Version: 0.1.5.017
44
Authors@R:
55
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

R/cm-collate-all.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ models_over_end_dates <- function (path, end_date = Sys.Date (), num_years = 3)
8181
function (d) collate_all_models (path, end_date = d)
8282
)
8383
models_data <- data.frame (do.call (rbind, models_data)) |>
84-
dplyr::mutate (models_data, date = end_dates, .before = 1)
84+
dplyr::mutate (date = end_dates, .before = 1)
8585

8686
return (models_data)
8787
}

R/cm-metric-has-ci.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cm_metric_has_ci <- function (path, end_date = NULL) {
3636
if (!has_ci) {
3737
ci_files <- repo_has_ci_files (path)
3838
has_ci <- length (ci_files) > 0L
39-
if (has_ci) {
39+
if (has_ci && is_verbose ()) {
4040
cli::cli_alert_info (paste0 (
4141
"Unable to determine whether runs are ",
4242
"recent for CI service [{ci_files}]."

R/utils.R

+4
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,7 @@ get_end_date_seq <- function (end_date = Sys.Date (),
5959

6060
return (end_dates)
6161
}
62+
63+
is_verbose <- function () {
64+
getOption ("rlang_message_verbosity", "") == "verbose"
65+
}

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/repometrics",
99
"issueTracker": "https://github.com/ropensci-review-tools/repometrics/issues",
1010
"license": "https://spdx.org/licenses/GPL-3.0",
11-
"version": "0.1.5.016",
11+
"version": "0.1.5.017",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

0 commit comments

Comments
 (0)