From 4c4983459e5f554684b6de2827cc274b8e98c103 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sun, 8 Dec 2024 14:26:31 +0000 Subject: Remove the code for adding "Bug" tag That is not longer necessary with support for searching by custom fields --- phabricator_tasks/tasks.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'phabricator_tasks/tasks.py') diff --git a/phabricator_tasks/tasks.py b/phabricator_tasks/tasks.py index 3fbe2f2..06d4a85 100644 --- a/phabricator_tasks/tasks.py +++ b/phabricator_tasks/tasks.py @@ -4,9 +4,6 @@ Phorge task chores: 1. Close a tasks if it's "Finished" in all boards but not yet resolved 2. Unassign tasks that are nominally assigned to someone but had no activity in a long time -3. Tag tasks "Bug" if the type is "bug" for ease of searching - (since Phorge still can't search by custom fields...) - ''' import argparse @@ -65,16 +62,6 @@ for task in tasks: else: unassign_task(task['task_id'], TOKEN) - - # Tag tasks "Bug" for ease of searching - # XXX: disabled due to issue with statuses for now - #if task['issue_type'] in ['bug', 'vulnerability']: - # print(f'Categorizing task T{task["task_id"]} as bug based on its issue type') - # if DRYRUN: - # pass - # else: - # add_project(task['task_id'], BUGS_PROJECT, TOKEN) - # Tag tasks "Uncategorized tasks" to draw maintainer attention to them # if "Issue type" is not specified if task['issue_type'] == 'unspecified': -- cgit v1.2.3