Skip to content

ci(docs): rebuild API reference after den-api deploys - #6464

Open
reachjalil wants to merge 1 commit into
devfrom
ci/refresh-api-docs-after-den-deploy
Open

reachjalil wants to merge 1 commit into
devfrom
ci/refresh-api-docs-after-den-deploy

Conversation

@reachjalil

Copy link
Copy Markdown
Member

What is this about?

The API tab in the hosted docs now rebuilds by itself once production den-api serves a change to the API contract.

What problem does it solve?

New or changed endpoints could be missing from the API reference for hours after they shipped.

What was the situation before?

The docs read the API reference from the live public contract, but Mintlify only rebuilds when something under packages/docs changes. An API-only change reached the docs on the next unrelated docs edit. A change touching both was built before den-api deployed, so it picked up the previous contract.

How is this implemented?

  • New .github/workflows/refresh-api-docs.yml runs on dev pushes to the paths the contract check already treats as contract sources.
  • It polls /openapi.json?public=1 until info.version is the pushed commit or a newer one (compared through the GitHub API), three reads in a row so old instances drain.
  • It then calls Mintlify's trigger-update API and waits for the result.
  • A missing MINTLIFY_API_KEY secret or MINTLIFY_PROJECT_ID variable, a deploy that never appears, or a failed rebuild only warns.

What else changed?

  • One line in ee/apps/den-api/README.md pointing at the workflow.

Release note

none

Evidence

  • actionlint is clean. Running the wait step locally against production confirmed an already-deployed commit and warned, without failing, for a commit that is not on dev. The Mintlify call runs only once the secret and variable are set.

The hosted docs build the API tab from the live public contract, but the
docs Git integration only rebuilds when packages/docs changes. Wait until
production den-api serves the pushed commit (or a newer one), then ask
Mintlify to rebuild. Missing settings or a failed rebuild only warn.

Signed-off-by: Jalil <reachjalil@gmail.com>
@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Oct 24, 2026 1:22am UTC
openwork-den Ready Ready Preview Oct 24, 2026 1:22am UTC
openwork-diagnostics Ready Ready Preview Oct 24, 2026 1:22am UTC
openwork-landing Ready Ready Preview, v0 Oct 24, 2026 1:22am UTC

Request Review

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🔴 Preview unavailable 8aaa265 View run 2026-10-24 01:52:12 UTC

Evidence run interrupted

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden clearance. Complete security and confidentiality review of 8aaa265d2dba9eaaaa29b925a0e91f9e573b3fec found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@diff-warden

diff-warden Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Warden: approved

No high or medium security findings and no confidentiality findings.

Reviewed 8aaa265d2dba · Warden run · Updates after every Warden run.

This branch was successfully deployed

4 active deployments
Preview – openwork-app — 8aaa265d Deployed Oct 24, 2026 by vercel[bot]
Preview – openwork-den — 8aaa265d Deployed Oct 24, 2026 by vercel[bot]
Preview – openwork-landing — 8aaa265d Deployed Oct 24, 2026 by vercel[bot]
Preview – openwork-diagnostics — 8aaa265d Deployed Oct 24, 2026 by vercel[bot]
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