# HG changeset patch # User Mads Kiilerich # Date 2015-05-07 16:23:45 # Node ID a9d2e29585146ae77836c846ad2eacacdbd16f26 # Parent cb4e2b2be955c919481afe2ca7ffc57d0e482874 pullrequests: use correct References header when adding reviewers to (new?) PRs Use the same message id when inviting to a PR as we do when commenting on a PR. diff --git a/kallithea/model/pull_request.py b/kallithea/model/pull_request.py --- a/kallithea/model/pull_request.py +++ b/kallithea/model/pull_request.py @@ -125,8 +125,9 @@ class PullRequestModel(BaseModel): #notification to reviewers pr_url = pr.url(canonical=True) - threading = [h.canonical_url('pullrequest_show', repo_name=pr.other_repo.repo_name, - pull_request_id=pr.pull_request_id)] + threading = ['%s-pr-%s@%s' % (pr.other_repo.repo_name, + pr.pull_request_id, + h.canonical_hostname())] subject = safe_unicode( h.link_to( _('%(user)s wants you to review pull request #%(pr_id)s: %(pr_title)s') % \