Closed pr-pilot-ai[bot] closed 3 months ago
This PR adds tests for the create_unique_branch_name method in the TaskEngine class and updates the branch name generation logic.
create_unique_branch_name
TaskEngine
Changes
Branch Name Generation
MAX_BRANCH_NAME_LENGTH
Tests
MagicMock
Version Update
1.4.2
1.4.3
This PR adds tests for the
create_unique_branch_name
method in theTaskEngine
class and updates the branch name generation logic.Changes
Branch Name Generation
MAX_BRANCH_NAME_LENGTH
constant set to 24 characters.create_unique_branch_name
to truncate branch names at the last hyphen before 24 characters.Tests
create_unique_branch_name
to handle existing branches and various input cases.MagicMock
to mock external dependencies.Version Update
1.4.2
to1.4.3
.