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 <mordred@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
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 @@
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 @@
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,