Eyal Edri has submitted this change and it was merged.
Change subject: Fix bz.py module and added more functionality
......................................................................
Fix bz.py module and added more functionality
The following functionality has been added:
class:
Bug class that includes constructor for setting bug structure
The bug structure will include:
1. product
2. status
3. title
4. flags
5. target_rel
6. milestone
7. component
8. classification.
functions:
extract_bug_info(bug_id) function that will return bug data
(default info, flags and external tracker info) from the passed bug_id
extract_flags(list_of_flags_dicts) function that will return dict of flags
with only flag name (key) and flag status (value)
get_bug_urls(commit) function that will return list of bug urls from the
passed commit message
get_bug_ids(bug_urls) function that will return set of unique bug ids from
the passed list of bug urls.
Change-Id: I39f52bb9d2332cdc1ddb84ab4d412fd94ff75bbc
Signed-off-by: Shlomi Ben-David <sbendavi(a)redhat.com>
---
M hooks/lib/bz.py
1 file changed, 136 insertions(+), 50 deletions(-)
Approvals:
Shlomo Ben David: Verified
Eyal Edri: Looks good to me, approved
Jenkins CI: Passed CI tests
--
To view, visit
https://gerrit.ovirt.org/64220
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I39f52bb9d2332cdc1ddb84ab4d412fd94ff75bbc
Gerrit-PatchSet: 4
Gerrit-Project: gerrit-admin
Gerrit-Branch: master
Gerrit-Owner: Shlomo Ben David <sbendavi(a)redhat.com>
Gerrit-Reviewer: Eyal Edri <eedri(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Shlomo Ben David <sbendavi(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>