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:
赵智超
2020-08-05 04:55:22 +08:00
committed by GitHub
parent e61c09ed73
commit 8a6790b2aa
5 changed files with 159 additions and 7 deletions

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() {