forked from lix-project/lix
Merge "Issue importer: do not notify" into main
This commit is contained in:
commit
da22dbc333
|
@ -117,6 +117,7 @@ def new_issue(title, body, labels):
|
||||||
'labels': labels,
|
'labels': labels,
|
||||||
'body': body,
|
'body': body,
|
||||||
'title': title,
|
'title': title,
|
||||||
|
'dont_notify': True,
|
||||||
})
|
})
|
||||||
|
|
||||||
already_imported = make_already_imported()
|
already_imported = make_already_imported()
|
||||||
|
@ -139,11 +140,6 @@ def import_issue(iss: Issue):
|
||||||
new_issue(new_title, new_body, new_labels)
|
new_issue(new_title, new_body, new_labels)
|
||||||
|
|
||||||
def go():
|
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!')
|
log.info('Importing issues!')
|
||||||
for issue in issues_to_import():
|
for issue in issues_to_import():
|
||||||
import_issue(DataClassUnpack.instantiate(Issue, issue))
|
import_issue(DataClassUnpack.instantiate(Issue, issue))
|
||||||
|
|
Loading…
Reference in a new issue