Skip to content

Commit fb7bc22

Browse files
committed
fix 'get_git_remote' to get BugReports url when main is docs site
Closes #53 (again)
1 parent 0a08b8e commit fb7bc22

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: srr
22
Title: 'rOpenSci' Review Roclets
3-
Version: 0.1.4.006
3+
Version: 0.1.4.007
44
Authors@R:
55
person("Mark", "Padgham", , "mark@ropensci.org", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

R/git.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ get_git_remote <- function (path = ".") {
3232
if (length (r) > 1) {
3333
r <- r [which (!grepl ("\\.io", r))]
3434
}
35+
if (grepl ("\\.io", r) && "BugReports" %in% names (d)) {
36+
r <- strsplit (d$BugReports, ",?\\s+?") [[1]]
37+
r <- grep ("github\\.com", r, value = TRUE)
38+
r <- gsub ("\\/issues$", "", r)
39+
}
3540

3641
} else if (repo_is_git (path)) {
3742

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/srr",
99
"issueTracker": "https://github.com/ropensci-review-tools/srr/issues",
1010
"license": "https://spdx.org/licenses/MIT",
11-
"version": "0.1.4.006",
11+
"version": "0.1.4.007",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

0 commit comments

Comments
 (0)