1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-12 08:23:48 +02:00
woodpecker/server/remote/gitea
qwerty287 28e96a3851
View better error if repo was deleted/renamed (#780)
If the repo was renamed, there's an issue with Gitea: it redirects the /api/v1/repos/<owner>/<repo>/hooks POST request to a GET request at the same URL.
This URL returns the list of all hooks, thus the Gitea SDK can't parse the response into a single gitea.Hook type.

A better error is also visisble if the repo was deleted.
2022-02-24 14:54:05 +01:00
..
fixtures Drop error only on purpose or else report back or log (#514) 2021-11-23 15:36:52 +01:00
gitea_test.go Remove unused flags / options (#693) 2022-01-31 15:38:00 +01:00
gitea.go View better error if repo was deleted/renamed (#780) 2022-02-24 14:54:05 +01:00
helper_test.go Remove unused flags / options (#693) 2022-01-31 15:38:00 +01:00
helper.go Remove unused flags / options (#693) 2022-01-31 15:38:00 +01:00
parse_test.go Fix tests and pipeline (#732) 2022-01-31 14:39:53 +01:00
parse.go Improve status updates (#561) 2021-12-28 17:02:49 +01:00
types.go Refactor: move remote/ to server/remote/ (#344) 2021-09-23 18:25:51 +02:00