Skip to content

Implement automatic code regeneration for OpenAPI changes #25

Description

@vilmosnagy

We should implement a solution to automatically regenerate the generated code. The automatic regeneration should happen in two scenarios:

  1. Whenever the openapi.yaml file changes in the p2-inc/phasetwo-docs repository
  2. On a scheduled basis (e.g., weekly/monthly) to pick up new OpenAPI Generator releases

Initially, the workflow should open a pull request to allow for manual review of the generated changes. After validating that the workflow is stable and requires minimal manual intervention, we can transition to automatically merging to main and releasing the changes in a future issue.

Investigation Needed

  • Design a GitHub Actions workflow that supports both update triggers
  • Investigate cross-repository triggers to detect changes in p2-inc/phasetwo-docs and open PRs in this repository

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions