Skip to content

Commit 77fcf77

Browse files
committed
add missing return statements
1 parent bedf9a9 commit 77fcf77

File tree

8 files changed

+20
-5
lines changed

8 files changed

+20
-5
lines changed

R/auth.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#' token: <token>
3030
#' ```
3131
#' @export
32+
#' @return Returns `TRUE` (invisibly).
3233
#' @examples
3334
#' \dontrun{
3435
#' browse_circle_token()
@@ -52,14 +53,14 @@ browse_circle_token <- function() { # nocov start
5253
#' @title Open circle Configuration file
5354
#' @description
5455
#' Opens `~/.circleci/cli.yml`.
56+
#' @return No return value, called for side effects.
5557
#' @export
5658
edit_circle_config <- function() { # nocov start
5759
usethis::edit_file("~/.circleci/cli.yml")
5860
} # nocov end
5961

6062
# check if API key is stored in ~/.circleci/cli.yml
6163
circle_check_api_key <- function() {
62-
6364
if (!Sys.getenv("R_CIRCLE") == "") {
6465
token <- Sys.getenv("R_CIRCLE")
6566

@@ -71,7 +72,6 @@ circle_check_api_key <- function() {
7172
# some checks for ~/.circleci/cli.yml
7273

7374
if (!file.exists("~/.circleci/cli.yml")) {
74-
7575
cli::cli_alert_danger("To interact with the Circle CI API, an API token is
7676
required. Please call {.fun browse_circle_token} first.
7777
Alternatively, set the API key via env vars {.var R_CIRCLE}.",
@@ -91,7 +91,6 @@ circle_check_api_key <- function() {
9191

9292
return(token)
9393
}
94-
9594
} # nocov end
9695

9796
is_token <- function(token) {

R/helpers-github.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#' The path to a GitHub-enabled Git repository (or a subdirectory thereof).
1010
#' @template token
1111
#' @template remote
12+
#' @return Object of class `gh_response` (list type) with information about the
13+
#' queried repository.
1214
#' @keywords internal
1315
github_info <- function(path = ".",
1416
remote = "origin",

R/use-circle-deploy.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#' `usethis::github_token()` can be used to check if one is already set.
2121
#' If none is set, this function will prompt you to create one.
2222
#'
23+
#' @return No return value, called for side effects.
2324
#' @examples
2425
#' \dontrun{
2526
#' use_circle_deploy()

codemeta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"@type": "SoftwareSourceCode",
77
"identifier": "circle",
8-
"description": "Tools for interacting with the 'Circle CI' API. Besides\n executing common tasks such as querying build logs and restarting\n builds, this package also helps setting up permissions to deploy from\n builds.",
8+
"description": "Tools for interacting with the 'Circle CI' API\n (<https://circleci.com/docs/api/v2/>). Besides executing common tasks\n such as querying build logs and restarting builds, this package also\n helps setting up permissions to deploy from builds.",
99
"name": "circle: R Client Package for Circle CI",
1010
"codeRepository": "https://github.com/ropensci/circle",
1111
"relatedLink": [
@@ -236,7 +236,7 @@
236236
],
237237
"releaseNotes": "https://github.com/ropensci/circle/blob/master/NEWS.md",
238238
"readme": "https://github.com/ropensci/circle/blob/main/README.md",
239-
"fileSize": "2167.786KB",
239+
"fileSize": "2168.45KB",
240240
"issueTracker": "https://github.com/ropensci/circle/issues",
241241
"developmentStatus": "https://lifecycle.r-lib.org/articles/stages.html",
242242
"contIntegration": ["https://circleci.com/gh/ropensci/circle", "https://codecov.io/gh/ropensci/circle"],

man/browse_circle_token.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.

man/edit_circle_config.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.

man/github_info.Rd

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

man/use_circle_deploy.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)