From 0655f6843df1b69b53abef1a94bdb46eb95e6732 Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Tue, 2 Aug 2022 14:17:37 +0200 Subject: [PATCH] fix group pulls --- tools/changelog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/changelog.py b/tools/changelog.py index de4f872e2..117a19e54 100755 --- a/tools/changelog.py +++ b/tools/changelog.py @@ -32,7 +32,7 @@ class Error(Exception): pass -def _paginate(method, since=None, **kw): +def _paginate(method, **kw): 'Paginate GitHub API call.' page = 1 while True: @@ -115,7 +115,7 @@ def group_pulls(pulls): groups = {None: []} for pull in pulls: labels = [l[3:] for l in pull.labels if l.startswith('on:')] - if not pull.labels: + if not labels: groups[None].append(pull) continue for label in labels: