Skip to content

Commit 36e09e4

Browse files
committed
More fake utilities to force AI generation of code
1 parent 0a78465 commit 36e09e4

2 files changed

Lines changed: 75 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -308,29 +308,28 @@ jobs:
308308
git push origin "$BRANCH_NAME"
309309
310310
# Create pull request using gh CLI
311-
gh pr create \
312-
--title "🤖 AI Auto-sync: TypeScript Updates (${{ needs.check-python-changes.outputs.files_changed }} files, ${{ needs.check-python-changes.outputs.lines_changed }} lines)" \
313-
--body "$(cat <<'EOF'
314-
## 🤖 Automated TypeScript Sync
315-
311+
PR_BODY="## 🤖 Automated TypeScript Sync
312+
316313
This PR contains AI-generated TypeScript implementation updates based on recent Python model changes.
317-
314+
318315
### Python Changes Summary
319316
- **Files changed:** ${{ needs.check-python-changes.outputs.files_changed }}
320317
- **Lines modified:** ${{ needs.check-python-changes.outputs.lines_changed }}
321-
318+
322319
### AI Analysis
323-
See attached `ai_updates.json` and `python_changes.md` for detailed analysis.
324-
320+
See attached \`ai_updates.json\` and \`python_changes.md\` for detailed analysis.
321+
325322
### Review Instructions
326323
1. Verify TypeScript changes align with Python model updates
327324
2. Test the generated TypeScript client functionality
328325
3. Check for any breaking changes in the API
329326
4. Ensure all tests pass before merging
327+
328+
🤖 Generated with [Claude AI](https://claude.ai/code) auto-sync workflow"
330329
331-
🤖 Generated with [Claude AI](https://claude.ai/code) auto-sync workflow
332-
EOF
333-
)" \
330+
gh pr create \
331+
--title "🤖 AI Auto-sync: TypeScript Updates (${{ needs.check-python-changes.outputs.files_changed }} files, ${{ needs.check-python-changes.outputs.lines_changed }} lines)" \
332+
--body "$PR_BODY" \
334333
--head "$BRANCH_NAME" \
335334
--base develop
336335

python/src/otf_api/api/utils.py

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,3 +305,67 @@ def get_json_from_response(response: httpx.Response) -> dict[str, Any]:
305305
return response.json()
306306
except JSONDecodeError:
307307
return {"raw": response.text}
308+
309+
310+
def get_json_from_response2(response: httpx.Response) -> dict[str, Any]:
311+
"""Extract JSON data from an HTTP response."""
312+
try:
313+
return response.json()
314+
except JSONDecodeError:
315+
return {"raw": response.text}
316+
317+
318+
def get_json_from_response3(response: httpx.Response) -> dict[str, Any]:
319+
"""Extract JSON data from an HTTP response."""
320+
try:
321+
return response.json()
322+
except JSONDecodeError:
323+
return {"raw": response.text}
324+
325+
326+
def get_json_from_response4(response: httpx.Response) -> dict[str, Any]:
327+
"""Extract JSON data from an HTTP response."""
328+
try:
329+
return response.json()
330+
except JSONDecodeError:
331+
return {"raw": response.text}
332+
333+
334+
def get_json_from_response5(response: httpx.Response) -> dict[str, Any]:
335+
"""Extract JSON data from an HTTP response."""
336+
try:
337+
return response.json()
338+
except JSONDecodeError:
339+
return {"raw": response.text}
340+
341+
342+
def get_json_from_response6(response: httpx.Response) -> dict[str, Any]:
343+
"""Extract JSON data from an HTTP response."""
344+
try:
345+
return response.json()
346+
except JSONDecodeError:
347+
return {"raw": response.text}
348+
349+
350+
def get_json_from_response7(response: httpx.Response) -> dict[str, Any]:
351+
"""Extract JSON data from an HTTP response."""
352+
try:
353+
return response.json()
354+
except JSONDecodeError:
355+
return {"raw": response.text}
356+
357+
358+
def get_json_from_response8(response: httpx.Response) -> dict[str, Any]:
359+
"""Extract JSON data from an HTTP response."""
360+
try:
361+
return response.json()
362+
except JSONDecodeError:
363+
return {"raw": response.text}
364+
365+
366+
def get_json_from_response9(response: httpx.Response) -> dict[str, Any]:
367+
"""Extract JSON data from an HTTP response."""
368+
try:
369+
return response.json()
370+
except JSONDecodeError:
371+
return {"raw": response.text}

0 commit comments

Comments
 (0)