Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": []
},
{
Expand All @@ -85,6 +85,13 @@
"command": "just create-release ${input:versionType}",
"problemMatcher": []
},
{
"label": "Claude Code",
"type": "shell",
"command": "claude",
"args": [],
"problemMatcher": []
}
],
"inputs": [
{
Expand Down Expand Up @@ -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",
Expand Down
12 changes: 11 additions & 1 deletion bin/create-feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down