From 81be5eb7c6302e3573578f4013dd99f989b1acad Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Mon, 18 Mar 2024 18:13:36 -0700 Subject: [PATCH] issue importer: list issues that are *not* closed when finding existing issues Turns out also, you cannot set the queue to 0 with any success. So we really should just like, prevent notifications in forgejo itself. Filed a bug for that: https://git.lix.systems/lix-project/web-services/issues/38 Change-Id: Ib96749f3159659182904963cab7b2ef88fc64442 --- maintainers/issue_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintainers/issue_import.py b/maintainers/issue_import.py index 4e6fea0fd..be736165d 100644 --- a/maintainers/issue_import.py +++ b/maintainers/issue_import.py @@ -96,7 +96,7 @@ def issues_to_import(): yield from paginate('GET', '/repos/nixos/nix/issues?state=open&labels=lix-import') def issues_already_imported(): - yield from paginate('GET', '/repos/lix-project/lix/issues?state=open&labels=imported') + yield from paginate('GET', '/repos/lix-project/lix/issues?state=all&labels=imported') UPSTREAM_ISSUE_RE = re.compile(r'^Upstream-Issue: https://git\.lix\.systems/NixOS/nix/issues/(\d+)$', re.MULTILINE) @@ -139,7 +139,7 @@ def import_issue(iss: Issue): new_issue(new_title, new_body, new_labels) def go(): - print('Have you turned off the forgejo mailer or limited the queue workers to 0 (assuming that works)? Enter "We have" if so:') + print('Have you turned off the forgejo mailer? Enter "We have" if so:') answer = input('> ') if answer != 'We have': return