mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-22 08:27:06 +00:00
Fix Gitea version constraint to get files changed on PR (#1805)
This commit is contained in:
parent
9813411c69
commit
f683c62748
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue