Skip to content

Commit 6bf74e5

Browse files
committed
Implement browse_travis()
1 parent 8bf65c0 commit 6bf74e5

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export(browse_cran)
44
export(browse_github)
55
export(browse_github_issues)
66
export(browse_github_pulls)
7+
export(browse_travis)
78
export(create_package)
89
export(create_project)
910
export(edit_git_config)

R/browse.R

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,32 @@
55
#' @examples
66
#' browse_cran("MASS")
77
browse_github <- function(package = NULL) {
8-
view_url(github_home(package = package))
8+
view_url(github_home(package))
99
}
1010

1111
#' @export
1212
#' @rdname browse_github
1313
browse_github_issues <- function(package = NULL) {
14-
view_url(github_home(package = package), "/issues")
14+
view_url(github_home(package), "/issues")
1515
}
1616

1717
#' @export
1818
#' @rdname browse_github
1919
browse_github_pulls <- function(package = NULL) {
20-
view_url(github_home(package = package), "/pulls")
20+
view_url(github_home(package), "/pulls")
21+
}
22+
23+
#' @export
24+
#' @rdname browse_github
25+
browse_travis <- function(package = NULL) {
26+
gh <- github_home(package)
27+
view_url(sub("github.com", "travis-ci.org", gh))
2128
}
2229

2330
#' @export
2431
#' @rdname browse_github
2532
browse_cran <- function(package = NULL) {
26-
view_url(cran_home(package = package))
33+
view_url(cran_home(package))
2734
}
2835

2936
github_home <- function(package = NULL) {

man/browse_github.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)