Skip to content

Commit ff022f8

Browse files
committed
ci: fix for CI
1 parent 026440a commit ff022f8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

R/pkgreview.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,5 +220,15 @@ pkgreview_getdata <- function(pkg_repo, pkg_dir = NULL,
220220
#' @return a list of whoami token metadata
221221
#' @export
222222
try_whoami <- function() {
223+
if (isTRUE(Sys.getenv("CI"))) {
224+
return(
225+
list(
226+
name = "Maëlle Salmon",
227+
login = "maelle",
228+
html_url = "https://github.com/maelle"
229+
)
230+
)
231+
}
232+
223233
try(gh::gh_whoami(gh::gh_token()), silent = TRUE)
224234
}

0 commit comments

Comments
 (0)