def gh_set_labels(self): labels = ["priority: " + self.trac.priority, self.trac.type.title(), # Upcase first letters ] if self.trac.component != 'component1': # Trac default labels.append('component: ' + self.trac.component) self.github.labels = [ghissues.find_label(l) for l in labels]
def gh_set_labels(self): labels = [ "priority: " + self.trac.priority, self.trac.type.title(), # Upcase first letters ] if self.trac.component != 'component1': # Trac default labels.append('component: ' + self.trac.component) self.github.labels = [ghissues.find_label(l) for l in labels]
def gh_set_labels(self): labels = [] ticket_priority = self.get_priority() if ticket_priority != None: labels.append(ticket_priority) ticket_type = self.get_ticket_type() if ticket_type != None: labels.append(ticket_type) if self.trac.component != 'component1': # Trac default labels.append('comp: ' + self.convert_component()) self.github.labels = [ghissues.find_label(l) for l in labels]