Skip to content

Commit 00c2d19

Browse files
authored
Merge pull request #1 from RoboFinSystems/release/0.1.10
Release v0.1.10: VSCode task refactoring and formatting improvements
2 parents 6f031cf + 89eb4a0 commit 00c2d19

File tree

4 files changed

+21
-40
lines changed

4 files changed

+21
-40
lines changed

.github/workflows/create-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
**Context:**
119119
- Repository: Application codebase
120120
- Source Branch: $SOURCE_BRANCH
121-
- Target Branch: $TARGET_BRANCH
121+
- Target Branch: $TARGET_BRANCH
122122
- PR Type: $PR_TYPE
123123
- Files Changed: $FILES_CHANGED
124124
- Commits: $COMMITS_COUNT
@@ -154,7 +154,7 @@ jobs:
154154
155155
**Context:**
156156
- Source Branch: $SOURCE_BRANCH
157-
- Target Branch: $TARGET_BRANCH
157+
- Target Branch: $TARGET_BRANCH
158158
- PR Type: $PR_TYPE
159159
- Files Changed: $FILES_CHANGED
160160
- Commits: $COMMITS_COUNT

.vscode/tasks.json

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
{
22
"version": "2.0.0",
33
"tasks": [
4+
45
{
5-
"label": "Generate Client",
6+
"label": "Install Dependencies",
67
"type": "shell",
7-
"command": "just generate-client ${input:apiUrl}",
8+
"command": "just install",
89
"problemMatcher": [],
910
"group": "build"
1011
},
1112
{
12-
"label": "Claude Code",
13-
"type": "shell",
14-
"command": "claude --model ${input:claudeModel}",
15-
"problemMatcher": []
16-
},
17-
{
18-
"label": "Install Dependencies",
13+
"label": "Update Dependencies",
1914
"type": "shell",
20-
"command": "just install",
15+
"command": "just update",
2116
"problemMatcher": [],
2217
"group": "build"
2318
},
2419
{
25-
"label": "Update Dependencies",
20+
"label": "Generate Client",
2621
"type": "shell",
27-
"command": "just update",
22+
"command": "just generate-client ${input:apiUrl}",
2823
"problemMatcher": [],
2924
"group": "build"
3025
},
@@ -49,13 +44,6 @@
4944
"problemMatcher": [],
5045
"group": "test"
5146
},
52-
{
53-
"label": "Test with Coverage",
54-
"type": "shell",
55-
"command": "just test-cov",
56-
"problemMatcher": [],
57-
"group": "test"
58-
},
5947
{
6048
"label": "Lint",
6149
"type": "shell",
@@ -99,14 +87,14 @@
9987
"group": "build"
10088
},
10189
{
102-
"label": "Build Python Package",
90+
"label": "Build Package",
10391
"type": "shell",
10492
"command": "just build-package",
10593
"problemMatcher": [],
10694
"group": "build"
10795
},
10896
{
109-
"label": "Publish Client to PyPI",
97+
"label": "Publish to PyPI",
11098
"type": "shell",
11199
"command": "just publish-pypi ${input:versionType}",
112100
"group": "build",
@@ -128,7 +116,7 @@
128116
{
129117
"id": "apiUrl",
130118
"type": "pickString",
131-
"description": "Choose API URL for Client generation:"
119+
"description": "Choose API URL for Client generation:",
132120
"default": "http://localhost:8000/openapi.json",
133121
"options": [
134122
"http://localhost:8000/openapi.json",
@@ -166,13 +154,6 @@
166154
"description": "Request Claude review automatically:",
167155
"default": "true",
168156
"options": ["true", "false"]
169-
},
170-
{
171-
"id": "claudeModel",
172-
"type": "pickString",
173-
"description": "Choose model:",
174-
"default": "opus",
175-
"options": ["opus", "sonnet"]
176157
}
177158
]
178159
}

bin/create-pr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,25 +83,25 @@ ATTEMPT=1
8383

8484
while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do
8585
echo "Attempt $ATTEMPT/$MAX_ATTEMPTS: Checking for created PR..."
86-
86+
8787
# Check if workflow failed
8888
WORKFLOW_STATUS=$(gh run list --workflow=create-pr.yml --limit=1 --json status --jq '.[0].status' 2>/dev/null || echo "")
8989
if [ "$WORKFLOW_STATUS" = "failure" ]; then
9090
echo "❌ Workflow failed. Check the GitHub Actions logs:"
9191
echo " gh run list --workflow=create-pr.yml"
9292
exit 1
9393
fi
94-
94+
9595
# Check if PR exists from current branch to target
9696
PR_URL=$(gh pr list --head "$CURRENT_BRANCH" --base "$TARGET_BRANCH" --json url --jq '.[0].url' 2>/dev/null || echo "")
97-
97+
9898
if [ -n "$PR_URL" ] && [ "$PR_URL" != "null" ]; then
9999
echo "✅ PR created successfully!"
100100
echo "🔗 PR URL: $PR_URL"
101101
echo ""
102102
echo "🎉 Claude has analyzed your changes and created a comprehensive PR"
103103
echo "📝 Review the PR description and make any necessary adjustments"
104-
104+
105105
# Try to open PR in browser
106106
if command -v open >/dev/null 2>&1; then
107107
echo "🌐 Opening PR in browser..."
@@ -112,10 +112,10 @@ while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do
112112
else
113113
echo "💡 Open the PR manually: $PR_URL"
114114
fi
115-
115+
116116
exit 0
117117
fi
118-
118+
119119
if [ $ATTEMPT -eq $MAX_ATTEMPTS ]; then
120120
echo "❌ Timeout: PR was not created after 5 minutes"
121121
echo "Check the GitHub Actions workflow status:"
@@ -125,8 +125,8 @@ while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do
125125
echo " gh pr create --base $TARGET_BRANCH --head $CURRENT_BRANCH"
126126
exit 1
127127
fi
128-
128+
129129
echo "PR not yet created, waiting 10 seconds..."
130130
sleep 10
131131
ATTEMPT=$((ATTEMPT + 1))
132-
done
132+
done

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "robosystems-client"
3-
version = "0.1.9"
3+
version = "0.1.10"
44
description = "Python Client for RoboSystems financial graph database API"
55
readme = "README.md"
66
requires-python = ">=3.10"

0 commit comments

Comments
 (0)