This commit is contained in:
skyanth
2017-06-07 17:13:43 +02:00
2 changed files with 10 additions and 5 deletions

View File

@@ -202,11 +202,14 @@ def list_issues(gitserver, options):
"""
Lists all issues for options['issues']
"""
for issue in gitserver.project_issues.list(project_id=options['issues'],
per_page=999):
if issue.state == 'closed' and not options['closed']:
continue
add_item(issue, options)
try:
for issue in gitserver.project_issues.list(project_id=options['issues'],
per_page=999):
if issue.state == 'closed' and not options['closed']:
continue
add_item(issue, options)
except gitlab.exceptions.GitlabListError as exception:
print_error('Could not access items ({0})'.format(exception))
def list_projects(gitserver):

View File

@@ -18,6 +18,8 @@ March 29th, 2017
In reports, you now have access to the `<finding_count>` placeholder. It takes an optional attribute `@threatLevel` and returns the number of findings with that threatLevel in the report. If no `@threatLevel` attribute is added, it returns the total number of findings in the report. Useful for Results in a Nutshell type of texts.
Example: `<finding_count threatLevel="Low"/>`
March 20th, 2017
----------------