From fe205b25f801c137640bb2b68ad43f99950fea99 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 03 2014 11:12:52 +0000 Subject: Fix the link when sending a notification about new issues Relates to #23 --- diff --git a/progit/lib.py b/progit/lib.py index c2ebe33..9590717 100644 --- a/progit/lib.py +++ b/progit/lib.py @@ -326,7 +326,9 @@ def new_issue(session, repo, title, content, user, ticketfolder): update_git_ticket(issue, repo=repo, ticketfolder=ticketfolder) - progit.notify.notify_new_issue(issue) + globalid = get_issue_global_id(session, issue.project.id, issue.id) + + progit.notify.notify_new_issue(issue, globalid) return 'Issue created' diff --git a/progit/notify.py b/progit/notify.py index 4fc9888..5d0b877 100644 --- a/progit/notify.py +++ b/progit/notify.py @@ -89,7 +89,7 @@ New comment: ) -def notify_new_issue(issue): +def notify_new_issue(issue, globalib): ''' Notify the people following a project that a new issue was added to it. ''' @@ -110,7 +110,7 @@ New issue: '%s/%s/issue/%s' % ( progit.APP.config['APP_URL'], issue.project.name, - issue.id, + globalib, ), ) mail_to = set([cmt.user.emails[0].email for cmt in issue.comments])