X Tutup
Skip to content

Commit 8db2027

Browse files
committed
Allow interactive pr create even if we failed to look up commits
1 parent 2b4372b commit 8db2027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/pr/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ func NewIssueState(ctx CreateContext, opts CreateOptions) (*shared.IssueMetadata
386386

387387
if opts.Autofill || !opts.TitleProvided || !opts.BodyProvided {
388388
err := initDefaultTitleBody(ctx, state)
389-
if err != nil {
389+
if err != nil && opts.Autofill {
390390
return nil, fmt.Errorf("could not compute title or body defaults: %w", err)
391391
}
392392
}

0 commit comments

Comments
 (0)
X Tutup