aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-10-23 10:31:13 -0400
committerUnknwon <u@gogs.io>2015-10-23 10:31:13 -0400
commitc6ce6bd4c2e51d2282b5810d49683d34113cf0c7 (patch)
tree401039a33c2d11a415e77159176ddd92d4eb69d5 /routers
parentb5fdf0947b80a9eae4a399faa78a349e394e77c0 (diff)
downloadgitea-c6ce6bd4c2e51d2282b5810d49683d34113cf0c7.tar.gz
gitea-c6ce6bd4c2e51d2282b5810d49683d34113cf0c7.zip
work on #1830
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 5bc53b35f8..e49b572c26 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -768,7 +768,7 @@ func NewComment(ctx *middleware.Context, form auth.CreateCommentForm) {
var pr *models.PullRequest
- if form.Status == "reopen" {
+ if form.Status == "reopen" && issue.IsPull {
pull := issue.PullRequest
pr, err = models.GetUnmergedPullRequest(pull.HeadRepoID, pull.BaseRepoID, pull.HeadBranch, pull.BaseBranch)
if err != nil {