From ff5c062b555d90bcdfcbfd814539b47b8d695e9e Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Wed, 1 Jan 2025 16:28:30 +0100 Subject: [PATCH] [pagure] Fetch all opened issues correctly Original query reports 6 created issues that are not closed: https://pagure.io/api/0/user/mikelo2/issues?assignee=false&created=2024-01-01..2025-01-01 While the new one reports 169 created issues: https://pagure.io/api/0/user/mikelo2/issues?status=all&created=2024-01-01..2025-01-01 Signed-off-by: Mikel Olasagasti Uranga --- did/plugins/pagure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/did/plugins/pagure.py b/did/plugins/pagure.py index b440cec4..9b549749 100644 --- a/did/plugins/pagure.py +++ b/did/plugins/pagure.py @@ -111,7 +111,7 @@ class IssuesCreated(Stats): def fetch(self): log.info('Searching for issues created by {0}'.format(self.user)) issues = [Issue(issue, self.options) for issue in self.parent.pagure.search( - query='user/{0}/issues?assignee=false&created={1}..{2}'.format( + query='user/{0}/issues?status=all&created={1}..{2}'.format( self.user.login, self.options.since, self.options.until), pagination='pagination_issues_created', result_field='issues_created')]