Skip to content

Commit

Permalink
fix 'get_branch_from_url' for #64
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Nov 11, 2024
1 parent fc39db7 commit 8545fae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: roreviewapi
Title: Plumber API to report package structure and function
Version: 0.1.0.059
Version: 0.1.0.060
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
3 changes: 2 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ get_branch_from_url <- function (repourl) {
branch <- NULL
domains <- strsplit (repourl, "\\/+") [[1]]
if (length (domains) > 4L & any (domains == "tree")) {
branch <- utils::tail (domains, 1L)
i <- which (domains == "tree")
branch <- domains [which (domains == "tree") + 1L]
}
return (branch)
}
Expand Down
2 changes: 1 addition & 1 deletion 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/roreviewapi",
"issueTracker": "https://github.com/ropensci-review-tools/roreviewapi/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.0.059",
"version": "0.1.0.060",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 8545fae

Please sign in to comment.