Mercurial > kallithea
changeset 5102:a9d2e2958514 stable
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.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 07 May 2015 16:23:45 +0200 |
parents | cb4e2b2be955 |
children | 7117a83b4b3a 1cc64983363a |
files | kallithea/model/pull_request.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/model/pull_request.py Thu May 07 16:23:45 2015 +0200 +++ b/kallithea/model/pull_request.py Thu May 07 16:23:45 2015 +0200 @@ -125,8 +125,9 @@ #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') % \