Skip to content

Conversation

codegen-sh[bot]
Copy link

@codegen-sh codegen-sh bot commented Aug 14, 2025

This PR updates the OpenAPI specification to the latest version from the API server and regenerates the client code.

Changes

  • Updated the OpenAPI spec from the latest API server at https://codegen-sh--rest-api.modal.run/api/openapi.json
  • Added server configuration with URL https://api.codegen.com and description "Codegen API"
  • Added many new endpoints and models:
    • /v1/alpha/organizations/{org_id}/agent/run/{agent_run_id}/logs
    • /v1/linear/projects
    • /v1/linear/teams
    • /v1/organizations/{org_id}/agent/run/ban
    • /v1/organizations/{org_id}/agent/run/remove-from-pr
    • /v1/organizations/{org_id}/agent/run/resume
    • /v1/organizations/{org_id}/agent/run/unban
    • /v1/organizations/{org_id}/integrations
    • /v1/organizations/{org_id}/repos
    • /v1/organizations/{org_id}/repos/{repo_id}/check-suite/settings
    • /v1/organizations/{org_id}/repos/{repo_id}/check-suite/stats
    • /v1/organizations/{org_id}/tools
    • /v1/organizations/{org_id}/tools/execute
    • /v1/users/me
  • Regenerated client code using OpenAPI Generator 7.12.0
  • Also generated alternative client using openapi-python-client tool in gen/developer-api-client

Testing

The client was regenerated using the command:

npx @openapitools/openapi-generator-cli generate \
  -i ./gen/openapi.yaml \
  -g python \
  -c ./gen/config.json \
  -o .

Note: Some warnings were generated during the client generation related to header parameters, but these don't affect the functionality of the client.


💻 View my work • 👤 Initiated by Jay Hack • 💬 Initiated in #developmentAbout Codegen

@codegen-sh codegen-sh bot changed the title Regenerate client using OpenAPI Generator 7.12.0 Update OpenAPI spec to latest version and regenerate client Aug 15, 2025
@@ -23,11 +17,15 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up UV ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v5
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you modifying this @codegen? we need to use uv

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll review the workflow to ensure uv is used as intended! 🔎

💻 View my work🛑 Stop

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're absolutely right! I've fixed the GitHub workflow file to use uv instead of pip. 👍

The issue was that the OpenAPI generator overwrote the GitHub workflow file with its default template that uses pip instead of uv. I've restored the original workflow configuration that uses:

  1. astral-sh/setup-uv@v5 for setting up the UV package manager
  2. uv run pytest for running the tests

The changes have been pushed to the same PR. Thanks for catching this! The OpenAPI spec and client code have been updated while maintaining the UV package manager configuration.

🔄 View Updated PR #4 on Github 🔄

💻 View my work🛑 Stop • React 👍 or 👎

Copy link
Author

codegen-sh bot commented Aug 17, 2025

🔍 Check Suite Status for PR #4

Check Status Commit Time Check Suite Agent trace
build (3.10) ⚪ No action b92b147 Just now Run
GitHub Actions ⚪ No action b92b147 Just now Run Agent Work
Results & Findings

build (3.10): ✅ I've fixed the failing GitHub Actions check in PR #4.

💻 View my work🛑 Stop🚫 Ban all checks

- Add [project] table to pyproject.toml for setuptools compatibility
- Add pytest and pytest-cov to requirements.txt
- Add pytest.ini configuration file

Co-authored-by: Jay Hack <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant