Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix test-coverage metric when no codecov badge #139

Merged
merged 1 commit into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: repometrics
Title: Metrics for Your Code Repository
Version: 0.2.0
Version: 0.2.0.001
Authors@R:
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
3 changes: 3 additions & 0 deletions R/cm-metric-test-coverage.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ cm_data_test_coverage <- function (path, end_date = NULL) {

readme <- readr::read_lines (readme, progress = FALSE)
codecov <- grep ("codecov\\.io.*\\.svg", readme, value = TRUE)
if (length (codecov) == 0L) {
return (NA_real_)
}
ptn <- "https\\:.*\\.svg"
badge_svg <- regmatches (codecov, gregexpr (ptn, codecov)) [[1]]
# Have to use httr2 to enable mocking via httptest2:
Expand Down
15 changes: 11 additions & 4 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci-review-tools/repometrics",
"issueTracker": "https://github.com/ropensci-review-tools/repometrics/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.2.0",
"version": "0.2.0.001",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -331,11 +331,18 @@
"name": "pkgstats",
"sameAs": "https://github.com/ropensci-review-tools/pkgstats"
},
"SystemRequirements": null
"SystemRequirements": {}
},
"fileSize": "24739.199KB",
"readme": "https://github.com/ropensci-review-tools/repometrics/blob/main/README.md",
"contIntegration": ["https://github.com/ropensci-review-tools/repometrics/actions?query=workflow%3AR-CMD-check", "https://app.codecov.io/gh/ropensci-review-tools/repometrics"],
"contIntegration": [
"https://github.com/ropensci-review-tools/repometrics/actions?query=workflow%3AR-CMD-check",
"https://app.codecov.io/gh/ropensci-review-tools/repometrics"
],
"developmentStatus": "https://www.repostatus.org/#active",
"keywords": ["dashboard", "r", "software-metrics"]
"keywords": [
"dashboard",
"r",
"software-metrics"
]
}
Loading