Fix Gitea version constraint to get files changed on PR (#1805)

This commit is contained in:
Xavier Maillard 2023-06-02 12:41:49 +02:00 committed by GitHub
parent 9813411c69
commit f683c62748
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -605,7 +605,7 @@ func (c *Gitea) getChangedFilesForPR(ctx context.Context, repo *model.Repo, inde
return nil, err
}
if client.CheckServerVersionConstraint("1.18.0") != nil {
if client.CheckServerVersionConstraint(">= 1.18.0") != nil {
// version too low
log.Debug().Msg("Gitea version does not support getting changed files for PRs")
return []string{}, nil