Skip to content

Commit

Permalink
Modification of the way labels are handled. With this modification th…
Browse files Browse the repository at this point in the history
…ey are saved into the 'labels' field of the 'issues_ext_github database' (and not the 'bug_type' field of the 'issues' table). Fixes MetricsGrimoire#154.
  • Loading branch information
iganchevup8 authored and Ivaylo Ganchev committed Apr 1, 2016
1 parent c383992 commit fa3c76b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bicho/backends/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ def analyze_bug(self, bug):
issue = bug['id']
if bug['labels']:
bug_type = bug['labels'][0]['name'] # FIXME
for i in range(0, len(bug['labels'])):
labels.append (bug['labels'][i]['name']
self.set_labels(labels)
print labels
else:
bug_type = unicode('')
summary = bug['title']
Expand Down

0 comments on commit fa3c76b

Please sign in to comment.