Skip to content

Commit b2c5300

Browse files
committed
docs: run examples on CI
1 parent 12f3267 commit b2c5300

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ VignetteBuilder:
3232
knitr
3333
Encoding: UTF-8
3434
Roxygen: list(markdown = TRUE)
35-
RoxygenNote: 7.3.3.9000
3635
SystemRequirements: libgit2 (>= 1.0): libgit2-devel (rpm) or libgit2-dev (deb)
3736
Language: en-US
37+
Config/roxygen2/version: 8.0.0.9000

R/commit.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ git_stat_files <- function(files, ref = "HEAD", max = NULL, repo = '.') {
273273
#' @param ... parameters passed to `git_commit` such as `message` or `author`
274274
#' @return The SHA of the new revert commit (invisibly), or `NULL` when
275275
#' `commit = FALSE`.
276-
#' @examplesIf interactive()
276+
#' @examplesIf interactive() || isTRUE(as.logical(Sys.getenv("CI", "false")))
277277
#' repo <- file.path(tempdir(), "myrepo")
278278
#' git_init(repo)
279279
#'

R/config.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ global_user_is_configured <- function() {
198198
#' `FALSE` otherwise.
199199
#'
200200
#' @export
201-
#' @examplesIf interactive()
201+
#' @examplesIf interactive() || isTRUE(as.logical(Sys.getenv("CI", "false")))
202202
#' user_is_configured()
203203
user_is_configured <- function(repo = ".") {
204204
user_name_exists <- !is.null(git_config_get("user.name", repo = repo))

R/restore.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#' @param ref revision string with a branch/tag/commit to restore from.
1717
#' Defaults to `"HEAD"`.
1818
#' @return Invisibly, the [git_status()] after restoring.
19-
#' @examplesIf interactive()
19+
#' @examplesIf interactive() || isTRUE(as.logical(Sys.getenv("CI", "false")))
2020
#' repo <- file.path(tempdir(), "myrepo")
2121
#' git_init(repo)
2222
#'

man/git_restore.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/git_revert.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/user_is_configured.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)