-
Notifications
You must be signed in to change notification settings - Fork 1
Update OpenAPI spec to latest version and regenerate client #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Co-authored-by: Jay Hack <[email protected]>
Co-authored-by: Jay Hack <[email protected]>
.github/workflows/python.yml
Outdated
@@ -23,11 +17,15 @@ jobs: | |||
|
|||
steps: | |||
- uses: actions/checkout@v4 | |||
- name: Set up UV ${{ matrix.python-version }} | |||
uses: astral-sh/setup-uv@v5 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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:
astral-sh/setup-uv@v5
for setting up the UV package manageruv 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 👎
Co-authored-by: Jay Hack <[email protected]>
🔍 Check Suite Status for PR #4
Results & Findingsbuild (3.10): ✅ I've fixed the failing GitHub Actions check in PR #4. |
- 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]>
This PR updates the OpenAPI specification to the latest version from the API server and regenerates the client code.
Changes
https://codegen-sh--rest-api.modal.run/api/openapi.json
https://api.codegen.com
and description "Codegen API"/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
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 #development • About Codegen