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:14 UTC
[kibble-scanners] branch master updated (ff0253f -> 376c7cd)
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git.
from ff0253f wrong var name here
new 423b54c fix error logging
new 376c7cd we're only interested in label names for now
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/plugins/scanners/github-issues.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
[kibble-scanners] 01/02: fix error logging
Posted by hu...@apache.org.
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 423b54c43340f56df3fa686df0505d3c945e5d28
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Sep 19 08:55:17 2018 +0200
fix error logging
wrong position of parens
---
src/plugins/scanners/github-issues.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/scanners/github-issues.py b/src/plugins/scanners/github-issues.py
index e54f553..5d58299 100644
--- a/src/plugins/scanners/github-issues.py
+++ b/src/plugins/scanners/github-issues.py
@@ -175,7 +175,7 @@ def scan(KibbleBit, source):
KibbleBit.pprint("HTTP Error, rate limit exceeded?")
source['steps']['issues'] = {
'time': time.time(),
- 'status': 'Issue scan failed at ' + time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime() + " - rate limited??"),
+ 'status': 'Issue scan failed at ' + time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime()) + " - rate limited??",
'running': False,
'good': False,
}
[kibble-scanners] 02/02: we're only interested in label names for
now
Posted by hu...@apache.org.
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,