mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-22 16:36:30 +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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if client.CheckServerVersionConstraint("1.18.0") != nil {
|
if client.CheckServerVersionConstraint(">= 1.18.0") != nil {
|
||||||
// version too low
|
// version too low
|
||||||
log.Debug().Msg("Gitea version does not support getting changed files for PRs")
|
log.Debug().Msg("Gitea version does not support getting changed files for PRs")
|
||||||
return []string{}, nil
|
return []string{}, nil
|
||||||
|
|
Loading…
Reference in a new issue