diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-11 12:00:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-11 12:00:29 +0800 |
commit | cf0f451c37496c84795e98191a20350e0f5be35c (patch) | |
tree | cea8b11a1a9afbf29f828c6132dc19c07c741bdc /routers/repo/issue.go | |
parent | 3576e1ee739cc03f87e6ce98dbef2f32b517b202 (diff) | |
download | gitea-cf0f451c37496c84795e98191a20350e0f5be35c.tar.gz gitea-cf0f451c37496c84795e98191a20350e0f5be35c.zip |
Add delete branch track on pull request comments (#888)
* add delete branch track on pull request comments
* don't change vendor
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r-- | routers/repo/issue.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 17c3b56c2e..e9b60175f3 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -635,7 +635,8 @@ func ViewIssue(ctx *context.Context) { } else if ctx.User.IsWriterOfRepo(pull.HeadRepo) { canDelete = true deleteBranchURL := pull.HeadRepo.Link() + "/branches/" + pull.HeadBranch + "/delete" - ctx.Data["DeleteBranchLink"] = fmt.Sprintf("%s?commit=%s&redirect_to=%s", deleteBranchURL, pull.MergedCommitID, ctx.Data["Link"]) + ctx.Data["DeleteBranchLink"] = fmt.Sprintf("%s?commit=%s&redirect_to=%s&issue_id=%d", + deleteBranchURL, pull.MergedCommitID, ctx.Data["Link"], issue.ID) } } |