mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
fix: address verified review findings (terminal-forms-1)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
21 files changed
+329
-53
No files matched your search
@@ -78,7 +78,7 @@ func (p *FormPrompter) CreateReview(ctx context.Context, choices ReviewFormChoic
|
||||
body = body.ExternalEditor(true).Editor(args...).EditorExtension("md")
|
||||
}
|
||||
if required {
|
||||
body = body.Validate(huh.ValidateNotEmpty())
|
||||
body = body.Validate(notBlank)
|
||||
}
|
||||
if err := p.runForm(ctx, huh.NewForm(huh.NewGroup(body))); err != nil {
|
||||
return values, err
|
||||
|
||||
Reference in new issue
Block a user