]> source.dussan.org Git - gitea.git/commit
Add API to get PR by base/head (#29242)
authorqwerty287 <80460567+qwerty287@users.noreply.github.com>
Mon, 26 Feb 2024 02:39:01 +0000 (03:39 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Feb 2024 02:39:01 +0000 (02:39 +0000)
commit65952417a81631ee879d4d29ad798cbb6445fa7e
tree97c2b95929620102021b1e6c4be7973d6dd63041
parentf38888bc7834899777bda1a271e166d3836524cf
Add API to get PR by base/head (#29242)

Closes https://github.com/go-gitea/gitea/issues/16289

Add a new API `/repos/{owner}/{repo}/pulls/{base}/{head}` to get a PR by
its base and head branch.
models/issues/pull.go
routers/api/v1/api.go
routers/api/v1/repo/pull.go
templates/swagger/v1_json.tmpl
tests/integration/api_pull_test.go