Skip to content

Add TinyPen sender workflow for shared OpenAPI artifact sync#45

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/add-sender-sync-workflow
Draft

Add TinyPen sender workflow for shared OpenAPI artifact sync#45
Copilot wants to merge 4 commits into
mainfrom
copilot/add-sender-sync-workflow

Conversation

Copy link
Copy Markdown

Copilot AI commented May 9, 2026

TinyPen now owns the canonical shared OpenAPI artifact in a standard openapi/components/ location and can automatically propagate updates to cubap/rerum_openapi via PR. This enables downstream consumers to continue validating against the receiver repo without per-feature contract workflows.

  • Canonical artifact in TinyPen

    • Added openapi/components/tinypen-shared-components.openapi.yaml as the source-of-truth shared contract artifact.
    • Structured as a valid minimal OpenAPI document so it is parseable by standard tooling.
  • Sender-side sync workflow

    • Added .github/workflows/sync_tinypen_shared_openapi.yaml.
    • Triggers on main changes to the canonical artifact (and supports manual dispatch).
    • Checks out cubap/rerum_openapi, copies the source artifact to:
      • schemas/openapi/tinypen-shared-components.openapi.yaml
    • Opens or updates a sync PR in the receiver repo using a stable sync branch.
  • Receiver stub enforcement + workflow hardening

    • Workflow explicitly fails if the receiver target file does not already exist, ensuring updates apply to a pre-seeded stub rather than creating first-run artifacts.
    • Added least-privilege workflow permissions and pinned third-party actions to commit SHAs.
on:
  push:
    branches: [main]
    paths:
      - openapi/components/tinypen-shared-components.openapi.yaml
  workflow_dispatch:

Copilot AI linked an issue May 9, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add sender sync workflow for shared OpenAPI artifacts Add TinyPen sender workflow for shared OpenAPI artifact sync May 9, 2026
Copilot finished work on behalf of cubap May 9, 2026 01:58
Copilot AI requested a review from cubap May 9, 2026 01:58
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.

Add sender sync workflow for shared OpenAPI artifacts

2 participants