1
0
Fork 0
mirror of https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot synced 2024-11-22 03:52:37 +01:00

new_wikis_handler: Add creating ticket for incubator import

This commit is contained in:
Ladsgroup 2024-02-04 15:51:28 +00:00
parent d3947054a7
commit 652751a2a4

View file

@ -63,6 +63,7 @@ class PostCreationHandler(object):
self._handle_pywikibot, self._handle_pywikibot,
self._handle_wikidata, self._handle_wikidata,
self._handle_wikistats, self._handle_wikistats,
self._handle_incubator,
] ]
self.handlers_needed = {} self.handlers_needed = {}
@ -201,6 +202,10 @@ class PostCreationHandler(object):
'PHID-PROJ-6sht6g4xpdii4c4bga2i' # VPS-project-Wikistats 'PHID-PROJ-6sht6g4xpdii4c4bga2i' # VPS-project-Wikistats
], self.post_ticket_phid, 'Add %s to wikistats' % self.db_name) ], 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): def add_text(a):
global final_text global final_text