From c5199c27211eeefb4d143f52b53d3f1c23097fcb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 29 May 2013 18:36:35 +0530 Subject: [PATCH] Automatically add link to launchpad bug in commits --- setup/git_pre_commit_hook.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/git_pre_commit_hook.py b/setup/git_pre_commit_hook.py index cd06faf6c4..8be2640f35 100755 --- a/setup/git_pre_commit_hook.py +++ b/setup/git_pre_commit_hook.py @@ -47,6 +47,7 @@ class Bug: print ('Working on bug:', summary) if int(bug) > 100000: self.close_bug(bug, action) + return match.group() + ' [%s](%s)' % (summary, LAUNCHPAD_BUG % bug) return match.group() + ' (%s)' % summary return match.group()