From 33da9c09c8e4ec5bbbda6cf8a5b5d8f5dbf58b7a Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Sat, 23 Mar 2024 19:03:34 -0700 Subject: [PATCH] Issue importer: do not notify This uses the forgejo patch we have for dont_notify on issue creation on the api, and indeed does not notify, so we can simply run the script safely :D Fixes: https://git.lix.systems/lix-project/web-services/issues/38 Change-Id: I86bcbf9b4499b439b79b82af84ee7df0f8eb3298 --- maintainers/issue_import.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/maintainers/issue_import.py b/maintainers/issue_import.py index be736165d..ea226b7b8 100644 --- a/maintainers/issue_import.py +++ b/maintainers/issue_import.py @@ -117,6 +117,7 @@ def new_issue(title, body, labels): 'labels': labels, 'body': body, 'title': title, + 'dont_notify': True, }) already_imported = make_already_imported() @@ -139,11 +140,6 @@ def import_issue(iss: Issue): new_issue(new_title, new_body, new_labels) def go(): - print('Have you turned off the forgejo mailer? Enter "We have" if so:') - answer = input('> ') - if answer != 'We have': - return - log.info('Importing issues!') for issue in issues_to_import(): import_issue(DataClassUnpack.instantiate(Issue, issue))