Set up a separate git worktree to solve the issue: $ARGUMENTS.
If this is a number, fetch issue description from Github.
-
Fetch issue info if number is provided. Use
gh issue view ### --comments
without specifying repo. It will use default from the dir we're currently in. -
Come up with a branch name from the issue description
-
Create branch git branch "$BRANCH_NAME" main
-
Find worktrees directory for this project in a parent directory