Don't require a body for comment PR reviews #399

Merged
zeripath merged 3 commits from noerw/tea:fix/372 into master 2021-09-22 18:18:26 +00:00

View File

@ -52,7 +52,7 @@ func ReviewPull(ctx *context.TeaContext, idx int64) error {
// comment
var promptOpts survey.AskOpt
if state == gitea.ReviewStateComment || state == gitea.ReviewStateRequestChanges {
if (state == gitea.ReviewStateComment && len(codeComments) == 0) || state == gitea.ReviewStateRequestChanges {
Review

this is a test using the webui to verify my claim in #399 (comment)

this is a test using the webui to verify my claim in https://gitea.com/gitea/tea/pulls/399#issuecomment-592704
Review

well I'm ok with it - since the gitea will have the last word anyway ...

well I'm ok with it - since the gitea will have the last word anyway ...
promptOpts = survey.WithValidator(survey.Required)
}
err = survey.AskOne(&survey.Multiline{Message: "Concluding comment:"}, &comment, promptOpts)