feat: add git worktree support to create-branch command - #147
Conversation
Contribution License Agreement - Valid 🟢All commits contain valid signoff. As a confirmation, remember that you are agreeing to our Contribution License Agreement. |
|
@TellMeAlex thank you for your contribution! Not sure why, but the PR-verify workflow did not run with your commit. Trying it locally, I see there are errors with gofmt, could you fix them ( |
1105372 to
5144a72
Compare
|
Hi @danielfn, thanks for the feedback! I've already applied |
@TellMeAlex there is a failure in the tests, mocks may need to be updated: |
…thods to GitProvider mocks - Added the three new methods to both manual mock in fork_test.go and autogenerated mock_GitProvider.go - Fixes CI failure in PR InditexTech#147 caused by interface extension in commit 2b06ee7
0a59e91 to
12cd0b3
Compare
- Add --worktree and --worktree-path flags to create-branch command - Implement CreateWorktree, ListWorktrees, and RemoveWorktree in GitProvider - Add Worktree domain model to represent git worktree state - Add createWorktreeBranch use case method returning the created worktree path - Add comprehensive unit tests for git worktree operations - Support fork context (upstream/origin) for worktree creation - Fix test isolation bug in CreateBranchWorktreeTestSuite (SetupSubTest vs SetupTest) - Fix default worktree path assertion to match the fake repository name Closes InditexTech#146 Signed-off-by: Alejandro de la Fuente de la Rosa <alejandrodlfdlr@ext.inditex.com>
12cd0b3 to
27edbab
Compare
Closes #146