0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-18 02:44:28 +01:00
gitea/routers
Antoine GIRARD 2b6f45299d api: fix multiple bugs with statuses endpoints (#7785)
* fix commit statuses api url

* search refs before passing sha

* adjust tests

* directly search tags and branches names + remove un-needed check in NewCommitStatus

* fix comment

* de-duplicate code

* test: use relative setting.AppURL

* Update routers/api/v1/repo/status.go

Co-Authored-By: Lauris BH <lauris@nix.lv>

* remove return

* Update routers/api/v1/repo/status.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
2019-08-09 10:13:03 +08:00
..
admin
api/v1
dev
org
private
repo
routes
user
utils
home.go
init.go
install.go
metrics.go
swagger_json.go