refactor: remove duplicate add_comment and add_label methods from IssueTools

- Removed duplicate dd_comment method (kept dd_comment_to_issue)
- Removed duplicate dd_label method (kept dd_label_to_issue)
- Updated dispatcher.py to remove duplicate tool registrations
- Updated coding_prompt.py to reference only dd_comment_to_issue
- Removed corresponding duplicate tests from test_issue_tools.py

This addresses section 10.1 (Confusing Naming) in bad_code.md
This commit is contained in:
meeks
2026-07-16 14:33:58 +02:00
parent 2ab87d507f
commit 3c94c3cfac
4 changed files with 33 additions and 61 deletions
-2
View File
@@ -165,8 +165,6 @@ class TaskProcessor(ABC):
self.pr_tools.close_pull_request,
self.issue_tools.get_issue_comments,
self.pr_tools.get_pull_request_comments,
self.issue_tools.add_comment,
self.issue_tools.add_label,
self.file_tools.update_file,
self.pr_tools.get_pull_request_diff,
self.pr_tools.get_pull_request_patch,