diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d9ad283..ce241c7 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -70,7 +70,7 @@ { "label": "Create Feature", "type": "shell", - "command": "just create-feature ${input:branchType} ${input:branchName} ${input:baseBranch}", + "command": "just create-feature ${input:branchType} ${input:branchName} ${input:baseBranch} ${input:updateDependencies}", "problemMatcher": [] }, { @@ -85,6 +85,13 @@ "command": "just create-release ${input:versionType}", "problemMatcher": [] }, + { + "label": "Claude Code", + "type": "shell", + "command": "claude", + "args": [], + "problemMatcher": [] + } ], "inputs": [ { @@ -113,6 +120,13 @@ "description": "Enter base branch (default: main):", "default": "main" }, + { + "id": "updateDependencies", + "type": "pickString", + "description": "Update dependencies after creating branch:", + "default": "yes", + "options": ["yes", "no"] + }, { "id": "targetBranch", "type": "promptString", diff --git a/bin/create-feature b/bin/create-feature index 993e724..bfb7be0 100755 --- a/bin/create-feature +++ b/bin/create-feature @@ -3,12 +3,13 @@ set -e # Create feature branch script - local Git operations # Creates a new feature/bugfix/hotfix branch locally and pushes to remote -# Usage: ./bin/create-feature [feature|bugfix|hotfix|chore|refactor] [branch-name] [base-branch] +# Usage: ./bin/create-feature [feature|bugfix|hotfix|chore|refactor] [branch-name] [base-branch] [update-deps] # Default values BRANCH_TYPE=${1:-feature} BRANCH_NAME=${2:-} BASE_BRANCH=${3:-main} +UPDATE_DEPS=${4:-yes} # Validate branch type if [[ "$BRANCH_TYPE" != "feature" && "$BRANCH_TYPE" != "bugfix" && "$BRANCH_TYPE" != "hotfix" && "$BRANCH_TYPE" != "chore" && "$BRANCH_TYPE" != "refactor" ]]; then @@ -78,6 +79,15 @@ git push -u origin $FULL_BRANCH echo "" echo "🎉 Successfully created and checked out $FULL_BRANCH" + +# Update dependencies if requested (default: yes) +if [[ "$UPDATE_DEPS" == "yes" ]]; then + echo "" + echo "📦 Updating dependencies..." + just update + echo "✅ Dependencies updated" +fi + echo "" echo "📝 Next steps:" echo " 1. Make your changes and commit them" diff --git a/justfile b/justfile index 76ecc2d..ee37df1 100644 --- a/justfile +++ b/justfile @@ -52,8 +52,8 @@ build-package: python -m build # Create a feature branch -create-feature branch_type="feature" branch_name="" base_branch="main": - bin/create-feature {{branch_type}} {{branch_name}} {{base_branch}} +create-feature branch_type="feature" branch_name="" base_branch="main" update="yes": + bin/create-feature {{branch_type}} {{branch_name}} {{base_branch}} {{update}} # Version management create-release type="patch":