"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/cmd/issue/create/create.go" between
gh-cli-1.11.0.tar.gz and gh-cli-1.12.0.tar.gz

About: GitHub CLI is GitHub’s official command line tool.

create.go  (gh-cli-1.11.0):create.go  (gh-cli-1.12.0)
skipping to change at line 237 skipping to change at line 237
templateNameForSubmit = template.NameForS ubmit() templateNameForSubmit = template.NameForS ubmit()
} else { } else {
templateContent = string(tpl.LegacyBody() ) templateContent = string(tpl.LegacyBody() )
} }
} }
err = prShared.BodySurvey(&tb, templateContent, editorCom mand) err = prShared.BodySurvey(&tb, templateContent, editorCom mand)
if err != nil { if err != nil {
return return
} }
if tb.Body == "" {
tb.Body = templateContent
}
} }
openURL, err = generatePreviewURL(apiClient, baseRepo, tb) openURL, err = generatePreviewURL(apiClient, baseRepo, tb)
if err != nil { if err != nil {
return return
} }
allowPreview := !tb.HasMetadata() && utils.ValidURL(openURL) allowPreview := !tb.HasMetadata() && utils.ValidURL(openURL)
action, err = prShared.ConfirmSubmission(allowPreview, repo.Viewe rCanTriage()) action, err = prShared.ConfirmSubmission(allowPreview, repo.Viewe rCanTriage())
if err != nil { if err != nil {
 End of changes. 1 change blocks. 
4 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)