Skip to content

Regenerate the API reference when packages are published - #5

Merged
lambdalisue merged 1 commit into
mainfrom
feat/api-docs-dispatch
Oct 11, 2026
Merged

lambdalisue merged 1 commit into
mainfrom
feat/api-docs-dispatch

Conversation

@lambdalisue

Copy link
Copy Markdown
Member

Summary

  • New Update API Reference workflow (.github/workflows/update-api.yml) on the packages-published repository dispatch that probitas and probitas-packages send after publishing (and by hand): it waits until npm reports each published version, or a newer one, as latest; runs npm run generate-api, the build and the link check in the dev shell; and when data/api/ changed, force-pushes api-docs/update and opens a pull request (or updates the open one).
  • Dispatches queue (queue: max) instead of replacing a pending one, since each waits only for its own versions; the job checks out main so a manual run from another branch cannot carry its commits into the pull request.
  • README describes the automation.

Why

data/api/ was regenerated by hand, so the API reference fell behind every release.

Stacked on #4 (base chore/oss-init). This repository does not delete merged branches, so retarget this PR to main after #4 merges.

Note: the local actionlint does not know concurrency.queue yet and flags it; GitHub documents it (single default, max keeps up to 100 pending runs).

Test Plan

  • actionlint (apart from queue), the version comparison checked for equal, newer and older latest
  • After merge: run the workflow by hand and check it opens or updates the pull request
  • Next release: the dispatch from probitas or probitas-packages triggers it

🤖 Generated with Claude Code

https://claude.ai/code/session_01N3xvJ1TaozjYSE6eoyo9mq

data/api/ was regenerated by hand, so the reference fell behind every
release. A new workflow handles the `packages-published` dispatch that
probitas and probitas-packages send after publishing: it waits until npm
reports the published versions (or newer) as latest, regenerates the data,
checks the build and links, and opens a pull request from api-docs/update or
updates the open one. Dispatches queue rather than replace each other, since
each waits only for its own versions. It can also be run by hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N3xvJ1TaozjYSE6eoyo9mq
Copilot AI balanced review requested due to automatic review settings October 11, 2026 05:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@lambdalisue
lambdalisue changed the base branch from chore/oss-init to main October 11, 2026 05:12
@lambdalisue
lambdalisue merged commit 1b36624 into main Oct 11, 2026
2 checks passed
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.

2 participants