diff options
author | Unknwon <u@gogs.io> | 2015-10-23 10:31:13 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-10-23 10:31:13 -0400 |
commit | c6ce6bd4c2e51d2282b5810d49683d34113cf0c7 (patch) | |
tree | 401039a33c2d11a415e77159176ddd92d4eb69d5 /routers | |
parent | b5fdf0947b80a9eae4a399faa78a349e394e77c0 (diff) | |
download | gitea-c6ce6bd4c2e51d2282b5810d49683d34113cf0c7.tar.gz gitea-c6ce6bd4c2e51d2282b5810d49683d34113cf0c7.zip |
work on #1830
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/issue.go | 2 |
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 { |