diff options
Diffstat (limited to 'services')
-rw-r--r-- | services/pull/merge.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/pull/merge.go b/services/pull/merge.go index b38c2e72f2..7aec7cef3e 100644 --- a/services/pull/merge.go +++ b/services/pull/merge.go @@ -374,8 +374,10 @@ func Merge(pr *models.PullRequest, doer *models.User, baseGitRepo *git.Repositor return err } close := (ref.RefAction == references.XRefActionCloses) - if err = issue_service.ChangeStatus(ref.Issue, doer, close); err != nil { - return err + if close != ref.Issue.IsClosed { + if err = issue_service.ChangeStatus(ref.Issue, doer, close); err != nil { + return err + } } } |