aboutsummaryrefslogtreecommitdiff
path: root/maintainers/issue_import.py
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-03-23 19:03:34 -0700
committerJade Lovelace <lix@jade.fyi>2024-03-23 19:03:34 -0700
commit33da9c09c8e4ec5bbbda6cf8a5b5d8f5dbf58b7a (patch)
tree2473a02e3cafcf55d2e1c56a490babc275082ba3 /maintainers/issue_import.py
parent946fc12e4e6d7e097c5b6ed4f6bc4d516b10b901 (diff)
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
Diffstat (limited to 'maintainers/issue_import.py')
-rw-r--r--maintainers/issue_import.py6
1 files changed, 1 insertions, 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))