Allow interactive pr create even if we failed to look up commits

This commit is contained in:
Mislav Marohnić 2020-12-03 18:02:24 +01:00
parent 2b4372bc3a
commit 8db2027c99

View file

@ -386,7 +386,7 @@ func NewIssueState(ctx CreateContext, opts CreateOptions) (*shared.IssueMetadata
if opts.Autofill || !opts.TitleProvided || !opts.BodyProvided {
err := initDefaultTitleBody(ctx, state)
if err != nil {
if err != nil && opts.Autofill {
return nil, fmt.Errorf("could not compute title or body defaults: %w", err)
}
}