mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-23 05:00:38 +00:00
Allow gitea dev version (#914)
* update gitea sdk to latest * As before try to autodetect gitea version, if this does not work, assume it's latest version (v1.17.0 atm)
This commit is contained in:
2
vendor/code.gitea.io/sdk/gitea/pull_review.go
generated
vendored
2
vendor/code.gitea.io/sdk/gitea/pull_review.go
generated
vendored
@@ -116,7 +116,7 @@ type ListPullReviewsOptions struct {
|
||||
|
||||
// Validate the CreatePullReviewOptions struct
|
||||
func (opt CreatePullReviewOptions) Validate() error {
|
||||
if opt.State != ReviewStateApproved && len(strings.TrimSpace(opt.Body)) == 0 {
|
||||
if opt.State != ReviewStateApproved && len(opt.Comments) == 0 && len(strings.TrimSpace(opt.Body)) == 0 {
|
||||
return fmt.Errorf("body is empty")
|
||||
}
|
||||
for i := range opt.Comments {
|
||||
|
Reference in New Issue
Block a user