mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-11-21 19:42:38 +01:00
new_wiki_handler: For now, do not expect the wiki will be public
this can cause serious issues if unnoticed, making the code to allow for passing visibility, I'll fix the template etc. and make the code to fetch the visibility from task soon.
This commit is contained in:
parent
f086d0a15a
commit
600ea016df
1 changed files with 2 additions and 2 deletions
|
@ -139,12 +139,12 @@ def post_a_comment(comment):
|
|||
pass
|
||||
|
||||
|
||||
def handle_subticket_for_cloud(task_details, db_name):
|
||||
def handle_subticket_for_cloud(task_details, db_name, wiki_status="unknown"):
|
||||
hasSubtasks = client.getTaskSubtasks(task_details['phid'])
|
||||
if hasSubtasks:
|
||||
return
|
||||
|
||||
client.createSubtask('The new wiki is going to be **public**.', [
|
||||
client.createSubtask("The new wiki's visibility will be: **%s**." % wiki_status, [
|
||||
'PHID-PROJ-hwibeuyzizzy4xzunfsk', # DBA
|
||||
'PHID-PROJ-bj6y6ks7ampcwcignhce' # Data services
|
||||
], task_details['phid'], 'Prepare and check storage layer for ' + db_name)
|
||||
|
|
Loading…
Reference in a new issue