]> source.dussan.org Git - gitea.git/commit
only return head: null if source branch was deleted (#6705)
authorquantonganh <quanta.linux@gmail.com>
Mon, 8 Jul 2019 07:32:46 +0000 (14:32 +0700)
committerLauris BH <lauris@nix.lv>
Mon, 8 Jul 2019 07:32:46 +0000 (10:32 +0300)
commitff85a6331e02338100e3799b5787bf8b686fe003
tree5dcbfd379660e9c5f2c9632d862dfbe1a2a92799
parentcb2ec41dce97c9ceb8db97332d1fa600bace3af5
only return head: null if source branch was deleted (#6705)

* only return head: null if source branch was deleted

* add URL into GetPullRequest

* TestPullRequest_APIFormat

* log error if it is not Err(Branch)NotExist
models/pull.go
models/pull_test.go