mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-09-08 00:18:39 +02:00
14 lines
468 B
Python
Executable file
14 lines
468 B
Python
Executable file
from lib import Client
|
|
|
|
|
|
client = Client.newFromCreds()
|
|
|
|
user_notice_phid = client.lookupPhid('#user-notice')
|
|
columns = client.getColumns(user_notice_phid)
|
|
mapping = {}
|
|
for column in columns['data']:
|
|
mapping[column['fields']['name']] = column['phid']
|
|
gen = client.getInactiveTasksWithProject(user_notice_phid, columns=[mapping['Already announced/Archive']])
|
|
for phid in gen:
|
|
client.changeProjectByPhid(phid, user_notice_phid, 'PHID-PROJ-y6egyt5y4lvnzs5mgll6')
|