Skip issues only if they're closed

This commit is contained in:
Peter Mosmans 2016-08-23 12:05:54 +02:00
parent 430d815f84
commit 134ea25535

View File

@ -142,7 +142,7 @@ def list_issues(gitserver, options):
"""
try:
for issue in gitserver.projects.get(options['issues']).issues.list(all=True):
if issue.state != 'opened' and not options['closed']:
if issue.state == 'closed' and not options['closed']:
continue
if 'finding' in issue.labels:
add_finding(issue, options)