From 63010659d01d6185221cb884f488f28fb097a4e5 Mon Sep 17 00:00:00 2001 From: Joey French Date: Sat, 17 Jan 2026 23:32:03 -0600 Subject: [PATCH] refactor: update justfile and add new scripts for feature branch creation, PR creation, release management, and SDK generation ## Summary This commit refactors the `justfile` to replace binary calls with corresponding shell scripts for better maintainability and clarity. New scripts for creating feature branches, managing pull requests, creating releases, and generating SDKs have been added to streamline development workflows. ## Key Changes - Updated `justfile` to call `.sh` scripts instead of binaries for: - Feature branch creation - Pull request creation - Release management - SDK generation - Added `create-feature.sh`, `create-pr.sh`, `create-release.sh`, and `generate-sdk.sh` scripts to handle respective tasks with improved error handling and user feedback. ## Testing Notes - Ensure all new scripts execute correctly and integrate seamlessly with existing workflows. - Validate that the `justfile` commands function as expected with the new script implementations. ## Infrastructure Considerations - This change enhances the development workflow by providing clearer and more manageable scripts for common tasks, improving overall project maintainability. --- bin/{create-feature => create-feature.sh} | 2 +- bin/{create-pr => create-pr.sh} | 0 bin/{create-release => create-release.sh} | 2 +- bin/{generate-sdk => generate-sdk.sh} | 0 justfile | 8 ++++---- 5 files changed, 6 insertions(+), 6 deletions(-) rename bin/{create-feature => create-feature.sh} (96%) rename bin/{create-pr => create-pr.sh} (100%) rename bin/{create-release => create-release.sh} (97%) rename bin/{generate-sdk => generate-sdk.sh} (100%) diff --git a/bin/create-feature b/bin/create-feature.sh similarity index 96% rename from bin/create-feature rename to bin/create-feature.sh index bfb7be0..1f62153 100755 --- a/bin/create-feature +++ b/bin/create-feature.sh @@ -3,7 +3,7 @@ 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] [update-deps] +# Usage: ./bin/create-feature.sh [feature|bugfix|hotfix|chore|refactor] [branch-name] [base-branch] [update-deps] # Default values BRANCH_TYPE=${1:-feature} diff --git a/bin/create-pr b/bin/create-pr.sh similarity index 100% rename from bin/create-pr rename to bin/create-pr.sh diff --git a/bin/create-release b/bin/create-release.sh similarity index 97% rename from bin/create-release rename to bin/create-release.sh index 74d7989..4c0a8f6 100755 --- a/bin/create-release +++ b/bin/create-release.sh @@ -3,7 +3,7 @@ set -e # Create release script using GitHub Actions # Creates a new release branch via GHA workflow and checks it out locally -# Usage: ./bin/create-release [major|minor|patch] +# Usage: ./bin/create-release.sh [major|minor|patch] # Default to patch if no argument provided VERSION_TYPE=${1:-patch} diff --git a/bin/generate-sdk b/bin/generate-sdk.sh similarity index 100% rename from bin/generate-sdk rename to bin/generate-sdk.sh diff --git a/justfile b/justfile index ee37df1..ea1dcfc 100644 --- a/justfile +++ b/justfile @@ -45,7 +45,7 @@ typecheck: # Generate SDK from localhost API generate-sdk url="http://localhost:8000/openapi.json": - bin/generate-sdk {{url}} + bin/generate-sdk.sh {{url}} # Build python package locally (for testing) build-package: @@ -53,15 +53,15 @@ build-package: # Create a feature branch create-feature branch_type="feature" branch_name="" base_branch="main" update="yes": - bin/create-feature {{branch_type}} {{branch_name}} {{base_branch}} {{update}} + bin/create-feature.sh {{branch_type}} {{branch_name}} {{base_branch}} {{update}} # Version management create-release type="patch": - bin/create-release {{type}} + bin/create-release.sh {{type}} # Create PR create-pr target_branch="main" claude_review="true": - bin/create-pr {{target_branch}} {{claude_review}} + bin/create-pr.sh {{target_branch}} {{claude_review}} # Clean up development artifacts clean: