From 1862061beec09d486f47018406f4db0bdcf3e51c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 26 2015 13:27:45 +0000 Subject: Adjust the email set when the assignee is set or reset --- diff --git a/progit/notify.py b/progit/notify.py index d23a151..19e36dc 100644 --- a/progit/notify.py +++ b/progit/notify.py @@ -134,14 +134,17 @@ New issue: def notify_assigned_issue(issue, new_assignee, username): ''' Notify the people following an issue that the assignee changed. ''' + action = 'reset', + if new_assignee: + action = 'assigned to `%s`' % new_assignee text = """ -The issue: `%s` of project: `%s` has been assigned to `%s` by %s. +The issue: `%s` of project: `%s` has been %s by %s. %s """ % ( issue.title, issue.project.name, - new_assignee, + action, username, '%s/%s/issue/%s' % ( progit.APP.config['APP_URL'],