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
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"id": "updateDependencies",
"type": "pickString",
"description": "Update dependencies after creating branch:",
"default": "yes",
"default": "no",
"options": ["yes", "no"]
},
{
Expand Down
6 changes: 4 additions & 2 deletions bin/create-feature.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -e
BRANCH_TYPE=${1:-feature}
BRANCH_NAME=${2:-}
BASE_BRANCH=${3:-main}
UPDATE_DEPS=${4:-yes}
UPDATE_DEPS=${4:-no}

# Validate branch type
if [[ "$BRANCH_TYPE" != "feature" && "$BRANCH_TYPE" != "bugfix" && "$BRANCH_TYPE" != "hotfix" && "$BRANCH_TYPE" != "chore" && "$BRANCH_TYPE" != "refactor" ]]; then
Expand Down Expand Up @@ -80,7 +80,9 @@ git push -u origin $FULL_BRANCH
echo ""
echo "🎉 Successfully created and checked out $FULL_BRANCH"

# Update dependencies if requested (default: yes)
# Update dependencies only when explicitly requested (default: no).
# Pass "yes" as the 4th arg to refresh deps on the new branch; otherwise
# branch creation leaves the lockfile untouched.
if [[ "$UPDATE_DEPS" == "yes" ]]; then
echo ""
echo "📦 Updating dependencies..."
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ build-package:
python -m build

# Create a feature branch
create-feature branch_type="feature" branch_name="" base_branch="main" update="yes":
create-feature branch_type="feature" branch_name="" base_branch="main" update="no":
bin/create-feature.sh {{branch_type}} {{branch_name}} {{base_branch}} {{update}}

# Version management
Expand Down
Loading