- Calculate new version
- Check CHANGELOG.md if it contains details about new version
- Publish new version
- This is implemented and commented out. Let's revisit it on phase 2
- If the worktree you want to delete is the same as the one you are currently working on, then you will be moved to another directory:
- If there are no other worktrees, you will be moved to the parent directory
- Otherwise, it will search for main worktrees like:
["master", "main", "develop", "dev", "release"]
, so you can be moved to them.- If it doesn't find any main worktree, you will be moved to the first directory selected by
git worktree list
- If it doesn't find any main worktree, you will be moved to the first directory selected by
Refs: