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 2017/10/22 16:55:18 UTC
[kibble-scanners] branch master updated: default to 'issue' issue
type
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
The following commit(s) were added to refs/heads/master by this push:
new 0502f10 default to 'issue' issue type
0502f10 is described below
commit 0502f109a206a86ce52fcd3d136ad3a5b2719ecf
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Oct 22 18:55:09 2017 +0200
default to 'issue' issue type
This is so we can easily distinguish between pull/merge requests
and plain issues
---
src/plugins/scanners/bugzilla.py | 1 +
src/plugins/scanners/jira.py | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/plugins/scanners/bugzilla.py b/src/plugins/scanners/bugzilla.py
index 8f4c223..4d9ca37 100644
--- a/src/plugins/scanners/bugzilla.py
+++ b/src/plugins/scanners/bugzilla.py
@@ -222,6 +222,7 @@ def scanTicket(bug, KibbleBit, source, openTickets, u, dom):
'status': status,
'created': cd,
'closed': rd,
+ 'issuetype': 'issue',
'issueCloser': closer['email'] if 'email' in closer else None,
'createdDate': time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(cd)),
'closedDate': time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(rd)) if rd else None,
diff --git a/src/plugins/scanners/jira.py b/src/plugins/scanners/jira.py
index 2f45d56..2818e2e 100644
--- a/src/plugins/scanners/jira.py
+++ b/src/plugins/scanners/jira.py
@@ -189,6 +189,7 @@ def scanTicket(KibbleBit, key, u, source, creds, openTickets):
'status': status,
'created': cd,
'closed': rd,
+ 'issuetype': 'issue',
'issueCloser': closerEmail,
'createdDate': time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(cd)),
'closedDate': time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(rd)) if rd else None,
--
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].