Skip to content

Commit 8c0fbcd

Browse files
ask also at start to make sure things go well
1 parent f42cd9e commit 8c0fbcd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/release.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ release_msg <- function(last_release, new_version) {
9898
#' @param tag The tag to push. `NULL` will derive the tag from `DESCRIPTION`.
9999
#' @keywords internal
100100
release_complete <- function(ask = TRUE, is_cran = ask, tag = NULL) {
101+
abort_if_not_yes("Are you on main branch with no changes in worktree?")
101102
if (git_branch_get() != "main") {
102103
rlang::abort("Must be on main to complete the release.")
103104
}

0 commit comments

Comments
 (0)