Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions cmd/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,18 @@
return err
}

if preview && !noConfirm {
input := confirmation.New("Commit preview summary?", confirmation.Yes)
ready, err := input.RunPrompt()
if err != nil {
return err
}
if !ready {
if preview {
if noConfirm {

Check warning on line 295 in cmd/commit.go

View check run for this annotation

Codecov / codecov/patch

cmd/commit.go#L294-L295

Added lines #L294 - L295 were not covered by tests
return nil
} else {
input := confirmation.New("Commit preview summary?", confirmation.Yes)
ready, err := input.RunPrompt()
if err != nil {
return err
}
if !ready {
return nil
}

Check warning on line 305 in cmd/commit.go

View check run for this annotation

Codecov / codecov/patch

cmd/commit.go#L297-L305

Added lines #L297 - L305 were not covered by tests
}
}

Expand Down
Loading