Skip to content

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

Merged
reachjalil merged 1 commit into
devfrom
ci/refresh-api-docs-after-den-deploy
Oct 26, 2026
Merged

reachjalil merged 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.

@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 26, 2026 5:15pm UTC
openwork-den Ready Ready Preview Oct 26, 2026 5:15pm UTC
openwork-diagnostics Ready Ready Preview Oct 26, 2026 5:15pm UTC
openwork-landing Ready Ready Preview, v0 Oct 26, 2026 5:15pm UTC

Request Review

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟢 Ready · evidence passed 3ebd1dd Open preview 2026-10-26 17:28:20 UTC

Run details · Open the preview to inspect evidence and sandbox options.

diff-warden[bot]
diff-warden Bot previously approved these changes Oct 24, 2026

@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 3ebd1ddaca7b · Warden run · Updates after every Warden run.

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>

@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 3ebd1ddaca7b7aed0b0d4b8c1a17a0fed9f4ada0 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@reachjalil
reachjalil merged commit f29623b into dev Oct 26, 2026
51 of 68 checks passed

This branch was successfully deployed

6 active deployments
Evidence / PR 6464 — 3ebd1dda Deployed Oct 26, 2026 by github-actions[bot]
Preview – openwork-landing — 3ebd1dda Deployed Oct 26, 2026 by vercel[bot]
Preview – openwork-den — 3ebd1dda Deployed Oct 26, 2026 by vercel[bot]
Preview – openwork-app — 3ebd1dda Deployed Oct 26, 2026 by vercel[bot]
Preview – openwork-diagnostics — 3ebd1dda Deployed Oct 26, 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