From 134ea255356a096edcc8adc4bb92fa8e103eda71 Mon Sep 17 00:00:00 2001 From: Peter Mosmans Date: Tue, 23 Aug 2016 12:05:54 +0200 Subject: [PATCH] Skip issues only if they're closed --- chatops/python/gitlab-to-pentext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatops/python/gitlab-to-pentext.py b/chatops/python/gitlab-to-pentext.py index 5ba2a14..2a780b3 100644 --- a/chatops/python/gitlab-to-pentext.py +++ b/chatops/python/gitlab-to-pentext.py @@ -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)