Merge "Creates the tag with project name and priority"
This commit is contained in:
commit
43c291b8a7
@ -66,6 +66,11 @@ class LaunchpadWriter(object):
|
|||||||
one first." % (project_name))
|
one first." % (project_name))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
def build_priority_tag(self, priority):
|
||||||
|
"""Writes in the tag, the project name, and your priority."""
|
||||||
|
priority_tag = '{}-{}'.format(self.project.name, priority)
|
||||||
|
return self.build_tag(priority_tag)
|
||||||
|
|
||||||
def write_tags(self, bug):
|
def write_tags(self, bug):
|
||||||
"""Extracts the tags from a launchpad bug, seeds/loads them in the
|
"""Extracts the tags from a launchpad bug, seeds/loads them in the
|
||||||
StoryBoard database, and returns a list of the corresponding entities.
|
StoryBoard database, and returns a list of the corresponding entities.
|
||||||
@ -227,6 +232,9 @@ class LaunchpadWriter(object):
|
|||||||
title = title[:97] + '...'
|
title = title[:97] + '...'
|
||||||
description = bug.title + '\n\n' + description
|
description = bug.title + '\n\n' + description
|
||||||
|
|
||||||
|
# Create priority tag
|
||||||
|
tags.append(self.build_priority_tag(priority))
|
||||||
|
|
||||||
# Sanity check.
|
# Sanity check.
|
||||||
story = {
|
story = {
|
||||||
'id': launchpad_id,
|
'id': launchpad_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user