Extract duplicated command hash logic into a shared helper in bot.py
#31
Labels
No Label
ai-changes-requested
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
in-next-release
status/in-progress
status/pr-open
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-v2#31
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
bot.py:204-254andbot.py:256-297—_should_sync_commandsand_save_command_hashcontain an identical ~35-line block that builds command data list and computes an MD5 hash. DRY violation.File Locations
bot.py:204-254bot.py:256-297Labels
tech-debt
Priority
low
Opened PR #65: #65
Extracted the duplicated ~35-line block into a new
_compute_command_hash()helper method. Both_should_sync_commandsand_save_command_hashnow delegate to it. Net −30 lines inbot.py. 924 tests pass.