145 # Compare the email addresses against known developer usernames |
145 # Compare the email addresses against known developer usernames |
146 commit_trackeruser = Config.find_developer_by_email (commit_email) |
146 commit_trackeruser = Config.find_developer_by_email (commit_email) |
147 |
147 |
148 if commit_trackeruser != '': |
148 if commit_trackeruser != '': |
149 commit_author += ' [%s]' % commit_trackeruser |
149 commit_author += ' [%s]' % commit_trackeruser |
|
150 |
|
151 commit_message = commit_message.replace ("\n", " ") |
150 |
152 |
151 message = 'Issue addressed by commit %s: [b][url=%s/commits/%s]%s[/url][/b]' \ |
153 message = 'Issue addressed by commit %s: [b][url=%s/commits/%s]%s[/url][/b]' \ |
152 % (commit_node, repo_url, commit_node, commit_message) |
154 % (commit_node, repo_url, commit_node, commit_message) |
153 message += "\nCommitted by %s on %s\n\n%s" \ |
155 message += "\nCommitted by %s on %s\n\n%s" \ |
154 % (commit_author, commit_date, commit_diffstat) |
156 % (commit_author, commit_date, commit_diffstat) |