1
0
Fork 0
mirror of https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot synced 2024-10-07 14:38:49 +02:00

Merge branch 'incubator' into 'master'

new_wikis_handler: Add creating ticket for incubator import

See merge request ladsgroup/Phabricator-maintenance-bot!3
This commit is contained in:
Ladsgroup 2024-02-04 15:51:29 +00:00
commit 1b0ea98418

View file

@ -63,6 +63,7 @@ class PostCreationHandler(object):
self._handle_pywikibot,
self._handle_wikidata,
self._handle_wikistats,
self._handle_incubator,
]
self.handlers_needed = {}
@ -201,6 +202,10 @@ class PostCreationHandler(object):
'PHID-PROJ-6sht6g4xpdii4c4bga2i' # VPS-project-Wikistats
], self.post_ticket_phid, 'Add %s to wikistats' % self.db_name)
def _handle_incubator(self):
client.createSubtask("Please import `%s` from incubator, once it is created. Thanks!" % self.db_name, [
'PHID-PROJ-ihns5jmm4kco7sqknqjl' # incubator.wikimedia.org
], self.post_ticket_phid, 'Import %s from incubator' % self.db_name)
def add_text(a):
global final_text