Skip to content

feat: add auto-generate models workflow#10

Open
nearlyforget wants to merge 2 commits intoUniversal-Commerce-Protocol:mainfrom
nearlyforget:setup-auto-gen
Open

feat: add auto-generate models workflow#10
nearlyforget wants to merge 2 commits intoUniversal-Commerce-Protocol:mainfrom
nearlyforget:setup-auto-gen

Conversation

@nearlyforget
Copy link
Contributor

@nearlyforget nearlyforget commented Feb 19, 2026

Description

This PR adds an automated workflow to handle specification releases and updates the generation script for better CI compatibility.

Changes:

  • Added .github/workflows/auto-generate.yml to listen for spec-release events.
  • Updating the generation script to support the SCHEMA_DIR environment variable makes the script portable. It allows the SDK to be built in diverse environments (like CI/CD pipelines or different
    local folder structures) without hardcoding a relative path that might not always be accurate.
  • Automated version bumping in pyproject.toml and PR creation.

Motivation:
This allows the Python SDK to stay up-to-date with the UCP specification automatically, reducing manual maintenance and ensuring type safety with the latest schemas.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code

@nearlyforget nearlyforget marked this pull request as ready for review February 19, 2026 03:25
@nearlyforget nearlyforget requested a review from a team February 19, 2026 03:25
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

Comments