diff options
author | sebastian-sauer <sauer.sebastian@gmail.com> | 2021-07-02 14:19:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 14:19:57 +0200 |
commit | 92328a3394be51e6200f69c91c402aa15ff6e06e (patch) | |
tree | c75096a6e31386435ee250c021cd3c6d7131002c /routers/api/v1/api.go | |
parent | Wrap around for previous/next buttons (#16319) (diff) | |
download | forgejo-92328a3394be51e6200f69c91c402aa15ff6e06e.tar.xz forgejo-92328a3394be51e6200f69c91c402aa15ff6e06e.zip |
Add API to get commits of PR (#16300)
* Add API to get commits of PR
fixes #10918
Co-authored-by: Andrew Bezold <andrew.bezold@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index c6b4ff04de..b6913ea1bc 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -905,6 +905,7 @@ func Routes() *web.Route { m.Get(".diff", repo.DownloadPullDiff) m.Get(".patch", repo.DownloadPullPatch) m.Post("/update", reqToken(), repo.UpdatePullRequest) + m.Get("/commits", repo.GetPullRequestCommits) m.Combo("/merge").Get(repo.IsPullRequestMerged). Post(reqToken(), mustNotBeArchived, bind(forms.MergePullRequestForm{}), repo.MergePullRequest) m.Group("/reviews", func() { |