File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -98,14 +98,14 @@ release_msg <- function(last_release, new_version) {
98
98
# ' @param tag The tag to push. `NULL` will derive the tag from `DESCRIPTION`.
99
99
# ' @keywords internal
100
100
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?" )
102
- if (git_branch_get() != " main" ) {
103
- rlang :: abort(" Must be on main to complete the release." )
104
- }
105
101
if (ask ) {
106
102
abort_if_not_yes(" Did you merge the release branch into main?" )
107
103
abort_if_not_yes(" Did you pull the latest main from origin?" )
108
104
}
105
+ abort_if_not_yes(" Are you on main branch with no changes in worktree?" )
106
+ if (git_branch_get() != " main" ) {
107
+ rlang :: abort(" Must be on main to complete the release." )
108
+ }
109
109
if (is_cran ) {
110
110
if (is.null(tag )) {
111
111
tag <- paste0(" v" , desc :: desc_get_version())
You can’t perform that action at this time.
0 commit comments