diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index 8a6d69e..9efe24d 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -118,7 +118,7 @@ jobs: **Context:** - Repository: Application codebase - Source Branch: $SOURCE_BRANCH - - Target Branch: $TARGET_BRANCH + - Target Branch: $TARGET_BRANCH - PR Type: $PR_TYPE - Files Changed: $FILES_CHANGED - Commits: $COMMITS_COUNT @@ -154,7 +154,7 @@ jobs: **Context:** - Source Branch: $SOURCE_BRANCH - - Target Branch: $TARGET_BRANCH + - Target Branch: $TARGET_BRANCH - PR Type: $PR_TYPE - Files Changed: $FILES_CHANGED - Commits: $COMMITS_COUNT diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3efb791..eb7215d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,30 +1,25 @@ { "version": "2.0.0", "tasks": [ + { - "label": "Generate Client", + "label": "Install Dependencies", "type": "shell", - "command": "just generate-client ${input:apiUrl}", + "command": "just install", "problemMatcher": [], "group": "build" }, { - "label": "Claude Code", - "type": "shell", - "command": "claude --model ${input:claudeModel}", - "problemMatcher": [] - }, - { - "label": "Install Dependencies", + "label": "Update Dependencies", "type": "shell", - "command": "just install", + "command": "just update", "problemMatcher": [], "group": "build" }, { - "label": "Update Dependencies", + "label": "Generate Client", "type": "shell", - "command": "just update", + "command": "just generate-client ${input:apiUrl}", "problemMatcher": [], "group": "build" }, @@ -49,13 +44,6 @@ "problemMatcher": [], "group": "test" }, - { - "label": "Test with Coverage", - "type": "shell", - "command": "just test-cov", - "problemMatcher": [], - "group": "test" - }, { "label": "Lint", "type": "shell", @@ -99,14 +87,14 @@ "group": "build" }, { - "label": "Build Python Package", + "label": "Build Package", "type": "shell", "command": "just build-package", "problemMatcher": [], "group": "build" }, { - "label": "Publish Client to PyPI", + "label": "Publish to PyPI", "type": "shell", "command": "just publish-pypi ${input:versionType}", "group": "build", @@ -128,7 +116,7 @@ { "id": "apiUrl", "type": "pickString", - "description": "Choose API URL for Client generation:" + "description": "Choose API URL for Client generation:", "default": "http://localhost:8000/openapi.json", "options": [ "http://localhost:8000/openapi.json", @@ -166,13 +154,6 @@ "description": "Request Claude review automatically:", "default": "true", "options": ["true", "false"] - }, - { - "id": "claudeModel", - "type": "pickString", - "description": "Choose model:", - "default": "opus", - "options": ["opus", "sonnet"] } ] } \ No newline at end of file diff --git a/bin/create-pr b/bin/create-pr index a863327..4b23e44 100755 --- a/bin/create-pr +++ b/bin/create-pr @@ -83,7 +83,7 @@ ATTEMPT=1 while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do echo "Attempt $ATTEMPT/$MAX_ATTEMPTS: Checking for created PR..." - + # Check if workflow failed WORKFLOW_STATUS=$(gh run list --workflow=create-pr.yml --limit=1 --json status --jq '.[0].status' 2>/dev/null || echo "") if [ "$WORKFLOW_STATUS" = "failure" ]; then @@ -91,17 +91,17 @@ while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do echo " gh run list --workflow=create-pr.yml" exit 1 fi - + # Check if PR exists from current branch to target PR_URL=$(gh pr list --head "$CURRENT_BRANCH" --base "$TARGET_BRANCH" --json url --jq '.[0].url' 2>/dev/null || echo "") - + if [ -n "$PR_URL" ] && [ "$PR_URL" != "null" ]; then echo "✅ PR created successfully!" echo "🔗 PR URL: $PR_URL" echo "" echo "🎉 Claude has analyzed your changes and created a comprehensive PR" echo "📝 Review the PR description and make any necessary adjustments" - + # Try to open PR in browser if command -v open >/dev/null 2>&1; then echo "🌐 Opening PR in browser..." @@ -112,10 +112,10 @@ while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do else echo "💡 Open the PR manually: $PR_URL" fi - + exit 0 fi - + if [ $ATTEMPT -eq $MAX_ATTEMPTS ]; then echo "❌ Timeout: PR was not created after 5 minutes" echo "Check the GitHub Actions workflow status:" @@ -125,8 +125,8 @@ while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do echo " gh pr create --base $TARGET_BRANCH --head $CURRENT_BRANCH" exit 1 fi - + echo "PR not yet created, waiting 10 seconds..." sleep 10 ATTEMPT=$((ATTEMPT + 1)) -done \ No newline at end of file +done diff --git a/pyproject.toml b/pyproject.toml index d222d93..8ab4d4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "robosystems-client" -version = "0.1.9" +version = "0.1.10" description = "Python Client for RoboSystems financial graph database API" readme = "README.md" requires-python = ">=3.10"