forked from lix-project/lix
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: lix-project/web-services#38
Change-Id: I86bcbf9b4499b439b79b82af84ee7df0f8eb3298
This commit is contained in:
parent
f86b965484
commit
99b6fea107
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue