Skip to content

Commit 7c2ff59

Browse files
jfrench9claude
andauthored
Add dependency update option to feature branch creation workflow (#50)
## Summary Enhanced the feature branch creation workflow by adding an optional dependency update step. This improvement streamlines the development process by allowing developers to automatically update project dependencies when creating new feature branches. ## Key Accomplishments - **Enhanced Workflow Automation**: Added configurable dependency update option to the feature creation process - **Improved Developer Experience**: Integrated the new functionality into VSCode tasks with user input prompts - **Flexible Configuration**: Made dependency updates optional, allowing developers to choose based on their specific needs - **Streamlined Build Process**: Updated task definitions to support the enhanced workflow parameters ## Changes Made - Extended feature creation tooling to accept dependency update parameter - Added interactive input prompts in VSCode task configuration for better user experience - Updated build automation scripts to accommodate new workflow options - Modified task definitions to support enhanced branch creation process ## Breaking Changes None. All changes are backward compatible and dependency updates remain optional. ## Testing Notes - Verify feature branch creation works with and without dependency update option - Test VSCode task integration and input prompts function correctly - Confirm build automation continues to work as expected - Validate that existing workflows remain unaffected ## Infrastructure Considerations This enhancement improves the local development environment setup and standardizes the feature branch creation process across the team. The optional nature of dependency updates ensures flexibility while providing automation benefits when needed. --- 🤖 Generated with [Claude Code](https://claude.ai/code) **Branch Info:** - Source: `chore/local-devex` - Target: `main` - Type: feature Co-Authored-By: Claude <noreply@anthropic.com>
2 parents 2398668 + 9783a85 commit 7c2ff59

3 files changed

Lines changed: 28 additions & 4 deletions

File tree

.vscode/tasks.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
{
7171
"label": "Create Feature",
7272
"type": "shell",
73-
"command": "just create-feature ${input:branchType} ${input:branchName} ${input:baseBranch}",
73+
"command": "just create-feature ${input:branchType} ${input:branchName} ${input:baseBranch} ${input:updateDependencies}",
7474
"problemMatcher": []
7575
},
7676
{
@@ -85,6 +85,13 @@
8585
"command": "just create-release ${input:versionType}",
8686
"problemMatcher": []
8787
},
88+
{
89+
"label": "Claude Code",
90+
"type": "shell",
91+
"command": "claude",
92+
"args": [],
93+
"problemMatcher": []
94+
}
8895
],
8996
"inputs": [
9097
{
@@ -113,6 +120,13 @@
113120
"description": "Enter base branch (default: main):",
114121
"default": "main"
115122
},
123+
{
124+
"id": "updateDependencies",
125+
"type": "pickString",
126+
"description": "Update dependencies after creating branch:",
127+
"default": "yes",
128+
"options": ["yes", "no"]
129+
},
116130
{
117131
"id": "targetBranch",
118132
"type": "promptString",

bin/create-feature

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ set -e
33

44
# Create feature branch script - local Git operations
55
# Creates a new feature/bugfix/hotfix branch locally and pushes to remote
6-
# Usage: ./bin/create-feature [feature|bugfix|hotfix|chore|refactor] [branch-name] [base-branch]
6+
# Usage: ./bin/create-feature [feature|bugfix|hotfix|chore|refactor] [branch-name] [base-branch] [update-deps]
77

88
# Default values
99
BRANCH_TYPE=${1:-feature}
1010
BRANCH_NAME=${2:-}
1111
BASE_BRANCH=${3:-main}
12+
UPDATE_DEPS=${4:-yes}
1213

1314
# Validate branch type
1415
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
7879

7980
echo ""
8081
echo "🎉 Successfully created and checked out $FULL_BRANCH"
82+
83+
# Update dependencies if requested (default: yes)
84+
if [[ "$UPDATE_DEPS" == "yes" ]]; then
85+
echo ""
86+
echo "📦 Updating dependencies..."
87+
just update
88+
echo "✅ Dependencies updated"
89+
fi
90+
8191
echo ""
8292
echo "📝 Next steps:"
8393
echo " 1. Make your changes and commit them"

justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ build-package:
5252
python -m build
5353

5454
# Create a feature branch
55-
create-feature branch_type="feature" branch_name="" base_branch="main":
56-
bin/create-feature {{branch_type}} {{branch_name}} {{base_branch}}
55+
create-feature branch_type="feature" branch_name="" base_branch="main" update="yes":
56+
bin/create-feature {{branch_type}} {{branch_name}} {{base_branch}} {{update}}
5757

5858
# Version management
5959
create-release type="patch":

0 commit comments

Comments
 (0)