Skip to content

Commit

Permalink
add unleash.R
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-s committed Aug 24, 2020
1 parent 4d91e6e commit 5662a5b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions R/unleash.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Feature: allow to specify a numeric version in `which`
unleash <- function(which, force = FALSE) {

state <- check_release_state()

switch(state,
"pre-release" = pre_release(which, force),
"ready-to-release" = release(),
"accepted" = post_release(),
"submitted" = TRUE,
"running-release-checks" = TRUE,

# FIXME: Improve error handling/messages
FALSE = stop("No valid state detected.")
)
}

0 comments on commit 5662a5b

Please sign in to comment.