1
0
Fork 0
mirror of https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot synced 2024-11-25 13:32:38 +01:00

Merge pull request #14 from urbanecm/double-checking-notices

new_wikis_handler: Print only one Checking row
This commit is contained in:
Amir Sarabadani 2020-07-14 16:45:47 +02:00 committed by GitHub
commit 878de1b45b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ def hande_task(phid):
global final_text global final_text
final_text = '' final_text = ''
task_details = client.taskDetails(phid) task_details = client.taskDetails(phid)
print('Checking', task_details['id']) print('Checking T%s' % task_details['id'])
add_text('\n\n------\n**Pre-install automatic checklist:**') add_text('\n\n------\n**Pre-install automatic checklist:**')
language_code = re.findall(r'\n- *?\*\*Language code:\*\* *?(\S+)', task_details['description']) language_code = re.findall(r'\n- *?\*\*Language code:\*\* *?(\S+)', task_details['description'])
if not language_code: if not language_code:
@ -266,7 +266,6 @@ def hande_task(phid):
def main(): def main():
open_create_wikis_phid = 'PHID-PROJ-kmpu7gznmc2edea3qn2x' open_create_wikis_phid = 'PHID-PROJ-kmpu7gznmc2edea3qn2x'
for phid in client.getTasksWithProject(open_create_wikis_phid, statuses=['open']): for phid in client.getTasksWithProject(open_create_wikis_phid, statuses=['open']):
print('Checking', phid)
hande_task(phid) hande_task(phid)