Support changed files for Gitea PRs (#1342)

- add tests to fetch changed files
- ignore error if gitea version is to low
- adjust docs accordingly

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
qwerty287
2022-10-28 19:17:30 +02:00
committed by GitHub
parent 36e42914fa
commit 8f183c82a8
10 changed files with 142 additions and 12 deletions

2
go.mod
View File

@@ -3,7 +3,7 @@ module github.com/woodpecker-ci/woodpecker
go 1.18
require (
code.gitea.io/sdk/gitea v0.15.1-0.20220831004139-a0127ed0e7fe
code.gitea.io/sdk/gitea v0.15.1-0.20221016183512-2d9ee57af1e0
codeberg.org/6543/go-yaml2json v0.3.0
github.com/antonmedv/expr v1.9.0
github.com/bmatcuk/doublestar/v4 v4.2.0