]> source.dussan.org Git - gitea.git/commit
Update branch API endpoint to show effective branch protection. (#9031)
authorDavid Svantesson <davidsvantesson@gmail.com>
Sat, 16 Nov 2019 19:39:18 +0000 (20:39 +0100)
committerzeripath <art27@cantab.net>
Sat, 16 Nov 2019 19:39:18 +0000 (19:39 +0000)
commit86cff86b46116353e4d6605ccf5a77a7ac65bc78
treec4b0cefc24d333f64682d9b31a91ad42406a6aef
parent3dfe9190b05b68497478324a776c1f80d6f5e56d
Update branch API endpoint to show effective branch protection. (#9031)

* Add API endpoint for displaying effective branch protection.

* Add status checks.
models/branches.go
modules/convert/convert.go
modules/structs/repo_branch.go
routers/api/v1/repo/branch.go
templates/swagger/v1_json.tmpl