Add API to update pr headBranch (#12419)

* [API] Add update pr headBranch api

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
赵智超 authored and GitHub committed 2020-08-04 21:55:22 +01:00
1 parent e61c09ed73
commit 8a6790b2aa
5 files changed
+159 -7

No files matched your search

+1 -1
View File
@@ -666,7 +666,7 @@ func ViewPullFiles(ctx *context.Context) {
ctx.HTML(200, tplPullFiles)
}
// UpdatePullRequest merge master into PR
// UpdatePullRequest merge PR's baseBranch into headBranch
func UpdatePullRequest(ctx *context.Context) {
issue := checkPullInfo(ctx)
if ctx.Written() {