You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/09/19 06:58:16 UTC

[kibble-scanners] 02/02: we're only interested in label names for now

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git

commit 376c7cd92a95a6c858b51128ccf6ecf0aad6121d
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Sep 19 08:58:02 2018 +0200

    we're only interested in label names for now
---
 src/plugins/scanners/github-issues.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/plugins/scanners/github-issues.py b/src/plugins/scanners/github-issues.py
index 5d58299..ecb8ad2 100644
--- a/src/plugins/scanners/github-issues.py
+++ b/src/plugins/scanners/github-issues.py
@@ -65,6 +65,9 @@ def make_issue(source, issue, people):
     itype = "issue"
     if 'pull_request' in issue:
         itype = "pullrequest"
+    labels = []
+    for l in issue.get('labels', []):
+        labels.append(l['name'])
     return {
         'id': dhash,
         'key': key,
@@ -73,7 +76,7 @@ def make_issue(source, issue, people):
         'sourceID': source['sourceID'],
         'url': issue['html_url'],
         'status': issue['state'],
-        'labels': issue.get('labels', []),
+        'labels': labels,
         'created': format_date(issue['created_at'], epoch=True),
         'closed': format_date(closed_date, epoch=True),
         'issueCloser': issue_closer,