From 94ebc242c5dcb5d16b525a0df45fbfbb158299ab Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Sun, 23 Jun 2013 17:18:50 +1000 Subject: [PATCH] Enhancements to docimpact bug creation code NB: This has not been tested yet, as launchpad staging server is down. These changes: * adds the gerrit review URL to the top of created bugs (so bug assignees/triagers can look at the patch easily) * set the tag of the bug to be the project/repo name, as is the docs triaging standard Change-Id: I1bc6a4081ac16ec2f8cf4cc419cec5b1fb03a6e2 Reviewed-on: https://review.openstack.org/34127 Reviewed-by: Monty Taylor Approved: Clark Boylan Reviewed-by: Clark Boylan Tested-by: Jenkins --- jeepyb/cmd/notify_impact.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jeepyb/cmd/notify_impact.py b/jeepyb/cmd/notify_impact.py index 4dc92e5..875f332 100644 --- a/jeepyb/cmd/notify_impact.py +++ b/jeepyb/cmd/notify_impact.py @@ -68,7 +68,7 @@ def process_impact(git_log, args): version='devel') lines_in_log = git_log.split("\n") bug_title = lines_in_log[4] - bug_descr = git_log + bug_descr = args.change_url + '\n' + git_log project_name = 'openstack-manuals' project = launchpad.projects[project_name] @@ -79,7 +79,8 @@ def process_impact(git_log, args): if len(potential_dupes) == 0: buginfo = launchpad.bugs.createBug(target=project, title=bug_title, - description=bug_descr) + description=bug_descr, + tags=args.project.split('/')[1]) buglink = buginfo.web_link email_content = DOC_EMAIL_TEMPLATE % (args.impact, args.change_url,