Skip to content

fix(docs): generate valid management-api endpoint metadata and unique filenames#7592

Open
aidankmcalister wants to merge 2 commits intomainfrom
fix/management-api-docs-build-and-frontmatter
Open

fix(docs): generate valid management-api endpoint metadata and unique filenames#7592
aidankmcalister wants to merge 2 commits intomainfrom
fix/management-api-docs-build-and-frontmatter

Conversation

@aidankmcalister
Copy link
Member

@aidankmcalister aidankmcalister commented Mar 5, 2026

Summary by CodeRabbit

  • Documentation
    • Expanded Management API documentation with comprehensive endpoint coverage for connections, databases, integrations, projects, and workspaces.
    • Improved documentation structure with standardized metadata and consistent formatting across all API endpoints.
    • Added documentation for new API operations including database backups, usage metrics, and workspace management endpoints.

@vercel
Copy link

vercel bot commented Mar 5, 2026

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

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Mar 5, 2026 6:26pm
docs Ready Ready Preview, Comment Mar 5, 2026 6:26pm
eclipse Ready Ready Preview, Comment Mar 5, 2026 6:26pm

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 5, 2026

Walkthrough

This pull request introduces comprehensive documentation for Management API endpoints by adding 29 new MDX documentation files, refactoring metadata structure in existing documentation, and enhancing the documentation generation script to support improved front matter handling and PATCH method support.

Changes

Cohort / File(s) Summary
New Connection Endpoint Documentation
delete-connections-by-id.mdx, get-connections-by-id.mdx
Added MDX pages documenting DELETE and GET operations for individual connections; both include frontmatter with OpenAPI metadata, generated notice, and APIPage components.
Modified Connection Documentation
get-connections.mdx
Restructured endpoint from single connection fetch to listing all connections; changed path from /v1/connections/{id} to /v1/connections, updated description and metadata fields (url, metaTitle, metaDescription).
New Database Endpoint Documentation
delete-databases-by-database-id.mdx, get-databases-by-database-id.mdx, patch-databases-by-database-id.mdx
Added MDX pages for DELETE, GET, and PATCH operations on individual databases with complete frontmatter and APIPage components.
Modified Database Documentation
get-databases.mdx, post-databases.mdx
Restructured metadata by moving path from nested _openapi to top-level fields and adding url, metaTitle, metaDescription; updated endpoint from /v1/databases/{id} to /v1/databases listing.
New Database Resource Endpoint Documentation
get-databases-by-database-id-backups.mdx, get-databases-by-database-id-usage.mdx
Added documentation for database backup and usage metric retrieval endpoints; includes full frontmatter and APIPage components for GET operations.
New Database-Connections Endpoint Documentation
get-databases-by-database-id-connections.mdx, post-databases-by-database-id-connections.mdx
Added MDX pages for retrieving and creating database connections; includes frontmatter with OpenAPI metadata and APIPage invocations.
Deleted Database-Connections Documentation
delete-connections.mdx
Removed deprecated documentation file for deleting database connections (21 lines deleted).
New Integration Endpoint Documentation
delete-integrations-by-id.mdx, get-integrations-by-id.mdx, delete-workspaces-by-workspace-id-integrations-by-client-id.mdx, get-workspaces-by-workspace-id-integrations.mdx
Added MDX pages for integration management operations across workspaces; includes DELETE and GET methods with complete metadata.
Modified Integration Documentation
get-integrations.mdx
Changed from single integration fetch to listing integrations; updated path from /v1/integrations/{id} to /v1/integrations, revised description and metadata.
New Project Endpoint Documentation
delete-projects-by-id.mdx, get-projects-by-id.mdx, patch-projects-by-id.mdx, post-projects-by-id-transfer.mdx, get-projects-by-project-id-databases.mdx, post-projects-by-project-id-databases.mdx
Added six new MDX documentation pages for project operations (DELETE, GET, PATCH, POST transfer, and database listing/creation); each includes frontmatter and APIPage components.
Modified Project Documentation
get-projects.mdx, post-projects.mdx
Restructured project endpoints; get-projects.mdx changed from fetching single project to listing; post-projects.mdx reorganized metadata fields (path, url, metaTitle, metaDescription).
New Workspace Endpoint Documentation
get-workspaces-by-id.mdx
Added MDX page for retrieving a workspace by ID; includes frontmatter with OpenAPI metadata and APIPage component.
Modified Workspace Documentation
get-workspaces.mdx
Restructured from single workspace fetch to listing workspaces; updated path from /v1/workspaces/{id} to /v1/workspaces, revised description and metadata fields.
Documentation Metadata Updates
misc/get-regions-accelerate.mdx, misc/get-regions-postgres.mdx, regions/get-regions.mdx
Reorganized OpenAPI metadata by moving path to top-level and adding standardized url, metaTitle, metaDescription fields; consolidated content structure.
Documentation Generation Script
scripts/generate-docs.ts
Refactored to parse and rewrite YAML front matter using gray-matter; introduced operationByFilePath map for structured metadata management; updated URL computation and field standardization; modified name normalization to preserve path parameter segments (removed /By[A-Z][a-z]*/g filtering).
OG Image Route Type Updates
src/app/og/[...slug]/route.tsx
Expanded HTTP_METHOD_COLORS to include PATCH; introduced OpenApiMetadata and PageFrontmatter type declarations; updated PrismaOGImage component to accept method as string and compute color dynamically; refactored handler to extract method and path through new type structure.
Metadata Configuration Updates
databases-connections/meta.json, databases/meta.json, integrations/meta.json, projects/meta.json
Updated endpoint identifiers in pages arrays to follow consistent naming convention with explicit path parameters (e.g., get-databases-idget-databases-by-database-id); removed deprecated entries and reformatted to multi-line JSON.
Documentation Build Workflow
.github/workflows/sync-management-api-docs.yml
Changed script invocation from direct tsx path to named npm script generate:management-api-docs.
NPM Scripts Configuration
apps/docs/package.json, package.json
Added new generate:management-api-docs scripts in both workspace package.json and root package.json; workspace script coordinates rimraf cleanup, fetch-openapi, generate-docs.ts, and fumadocs-mdx steps.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

This change involves a large cohort of homogeneous new documentation files (which require minimal individual review) paired with several moderate-complexity modifications: the script refactor in generate-docs.ts introduces structured metadata handling with gray-matter parsing; the type system expansion in route.tsx broadens method flexibility and adds new type structures; and the consistent metadata restructuring pattern across multiple files requires verification of field completeness. The 30+ new MDX files follow identical templates, reducing per-file review burden, but the supporting logic changes (especially front matter generation and type safety) warrant careful validation.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main changes: generating valid management-api endpoint metadata and unique filenames for documentation files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 11

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
apps/docs/src/app/og/[...slug]/route.tsx (1)

38-53: ⚠️ Potential issue | 🟡 Minor

Normalize and validate method before rendering the badge.

On Line 38 and Line 53, the fallback color makes methodColor truthy for any non-empty string, so unsupported/typo methods still render as valid-looking badges. This can mask bad metadata.

Suggested fix
-  const methodColor = method ? HTTP_METHOD_COLORS[method as keyof typeof HTTP_METHOD_COLORS] ?? "#71e8df" : null;
+  const normalizedMethod = method?.trim().toUpperCase();
+  const methodColor =
+    normalizedMethod && normalizedMethod in HTTP_METHOD_COLORS
+      ? HTTP_METHOD_COLORS[normalizedMethod as keyof typeof HTTP_METHOD_COLORS]
+      : null;
...
-      {method && methodColor ? (
+      {normalizedMethod && methodColor ? (
...
-          {method}
+          {normalizedMethod}

Also applies to: 73-74

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/docs/src/app/og/`[...slug]/route.tsx around lines 38 - 53, Normalize and
validate the HTTP method before using it to pick a color: convert the incoming
method to a canonical form (e.g., methodNormalized = method?.toUpperCase()) and
only set methodColor from HTTP_METHOD_COLORS if HTTP_METHOD_COLORS
hasOwnProperty(methodNormalized); otherwise set methodColor to null so
unsupported/typo values don't render a badge. Update the code that computes
methodColor and any other badge rendering sites (the other occurrence using
method/HTTP_METHOD_COLORS) to use methodNormalized and the explicit presence
check rather than relying on the fallback color.
apps/docs/content/docs/management-api/endpoints/databases/patch-databases-id.mdx (1)

1-21: ⚠️ Potential issue | 🟠 Major

Duplicate endpoint documentation confirmed across multiple HTTP methods.

Both patch-databases-id.mdx and patch-databases-by-database-id.mdx document the identical endpoint PATCH /v1/databases/{databaseId} with the same content, creating user confusion and maintenance overhead. Looking at the directory, this pattern repeats systematically: delete-databases-id.mdx / delete-databases-by-database-id.mdx, get-databases-id.mdx / get-databases-by-database-id.mdx, and so on. This suggests the generation script is producing both filename conventions for the same endpoints. Either the old naming scheme should be removed during generation, or if the intent was deliberate (e.g., migration), one set of files must be deleted to maintain a single source of truth.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@apps/docs/content/docs/management-api/endpoints/databases/patch-databases-id.mdx`
around lines 1 - 21, The docs generator is producing duplicate endpoint files
(e.g., patch-databases-id.mdx and patch-databases-by-database-id.mdx) causing
duplicated docs for the same path; update the generation logic to emit only one
canonical filename pattern (choose either the "-id.mdx" or "-by-database-id.mdx"
convention) and remove the alternate duplicates during generation, ensuring the
generator code that builds filenames (the routine that maps endpoint
path/operation to output filename) normalizes path variables consistently and
only writes the single chosen file for symbols like patch-databases-id.mdx,
delete-databases-id.mdx, get-databases-id.mdx, etc.; if migration is needed,
optionally add a cleanup step to delete the obsolete files after generation so
only the canonical files remain.
🧹 Nitpick comments (1)
apps/docs/content/docs/management-api/endpoints/workspaces/get-workspaces-by-id.mdx (1)

2-2: Consider a more specific page title for disambiguation.

Line 2 (Get workspace) is a bit generic; Get workspace by ID would better distinguish it from list/read-all pages in nav and search.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@apps/docs/content/docs/management-api/endpoints/workspaces/get-workspaces-by-id.mdx`
at line 2, The page title "Get workspace" is too generic; update the
frontmatter/title in the file (currently "title: Get workspace") to a more
specific label such as "Get workspace by ID" so it disambiguates this endpoint
from list/read-all pages in navigation and search; ensure any top-level header
or title field in get-workspaces-by-id.mdx is changed to the new string.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In
`@apps/docs/content/docs/management-api/endpoints/connections/delete-connections.mdx`:
- Around line 11-14: Two MDX pages (delete-connections.mdx and
delete-connections-by-id.mdx) both document the same operation DELETE
/v1/connections/{id}, causing duplicate canonical URLs; fix by deduplicating at
generation or removing one output. Update the Fumadocs generation logic to key
pages by operation identity (e.g., method+path or operationId) and emit a single
MDX file (preferably keep delete-connections.mdx) or canonicalize URLs
consistently; alternatively delete the redundant delete-connections-by-id.mdx
and ensure the generator uses a deterministic slug rule (operationId or
normalized path+method) so future runs don’t recreate the duplicate.

In
`@apps/docs/content/docs/management-api/endpoints/database-backups/get-databases-by-database-id-backups.mdx`:
- Around line 4-12: The frontmatter currently nests the endpoint "path" under
"_openapi" (the key "path" inside the _openapi block); update the
generator/template so "path" is emitted as a top-level frontmatter key instead
of under "_openapi" (remove "path" from inside _openapi and render it alongside
_openapi at the root), ensure the rest of _openapi.structuredData and url remain
unchanged, and regenerate the file so generated pages (e.g., the file containing
_openapi and path) have "path" at top-level for correct metadata indexing.

In
`@apps/docs/content/docs/management-api/endpoints/databases-connections/get-databases-id-connections.mdx`:
- Line 12: This PR introduces a duplicate page for the same GET
/v1/databases/{databaseId}/connections operation; remove the legacy slug entry
(the line "url:
/management-api/endpoints/databases-connections/get-databases-id-connections" in
apps/docs/content/docs/management-api/endpoints/databases-connections/get-databases-id-connections.mdx)
or delete the entire legacy MDX file so only the canonical page remains, and if
backward compatibility is needed add a redirect from the legacy path to the
canonical page via your docs router/redirect config rather than keeping two
pages for the same operation.

In
`@apps/docs/content/docs/management-api/endpoints/databases-connections/post-databases-id-connections.mdx`:
- Line 12: This file contains a legacy slug "url:
/management-api/endpoints/databases-connections/post-databases-id-connections"
that duplicates the POST /v1/databases/{databaseId}/connections endpoint
documented elsewhere; remove the legacy slug/this duplicate page and retain the
canonical document that describes POST /v1/databases/{databaseId}/connections
(or replace this file with a proper redirect entry only if backward
compatibility requires it) so there is a single canonical page for that
endpoint.

In
`@apps/docs/content/docs/management-api/endpoints/databases/delete-databases-id.mdx`:
- Line 12: Remove the duplicate documentation by deleting or consolidating
apps/docs/content/docs/management-api/endpoints/databases/delete-databases-id.mdx
and keeping the canonical
apps/docs/content/docs/management-api/endpoints/databases/delete-databases-by-database-id.mdx
(or vice versa); then update the Fumadocs generation logic to deduplicate by
endpoint path (e.g., the DELETE /v1/databases/{databaseId} route) so it emits a
single filename per endpoint, or add a mapping rule that normalizes names (e.g.,
strip “-by-” variants) before writing files; ensure any internal links or
sidebars are updated to point to the retained file.

In
`@apps/docs/content/docs/management-api/endpoints/integrations/delete-integrations-by-id.mdx`:
- Around line 4-11: The frontmatter currently nests endpoint identity under
_openapi (fields "method" and "path"); move "method: DELETE" and "path:
'/v1/integrations/{id}'" out of the _openapi block into top-level frontmatter so
the metadata pipeline can detect the endpoint, leaving _openapi only for
doc-structure fields, and update the generator that emits this file to produce
method and path at top-level instead of nested under _openapi.

In `@apps/docs/content/docs/management-api/endpoints/projects/patch-projects.mdx`:
- Around line 11-14: This page duplicates the same API operation documented in
apps/docs/content/docs/management-api/endpoints/projects/patch-projects-by-id.mdx
(PATCH /v1/projects/{id}); remove the duplicate page or convert it into a
canonical/redirecting page: either delete
apps/docs/content/docs/management-api/endpoints/projects/patch-projects.mdx and
update any links to point to patch-projects-by-id.mdx, or add explicit
canonical/redirect frontmatter/meta in patch-projects.mdx that points to
patch-projects-by-id.mdx (and include the PATCH /v1/projects/{id} path in the
frontmatter) so only one canonical URL remains.

In
`@apps/docs/content/docs/management-api/endpoints/workspaces/get-workspaces-by-id.mdx`:
- Line 5: The frontmatter for this endpoint has inconsistent HTTP method casing
(the `_openapi.method` value is "GET" on one line and "get" elsewhere) which can
break case-sensitive metadata consumers; update the MDX frontmatter so the
`method` value uses the project standard (make both `_openapi.method` entries
the same case—prefer lowercased "get" to match other docs) or, alternatively,
update the parser that reads `_openapi.method` (the OpenAPI/frontmatter parsing
logic) to call toLowerCase() on the method before matching operations so casing
is normalized; locate the `_openapi.method` frontmatter in this file and fix it
or normalize in the parser function that handles frontmatter/operations.

In
`@apps/docs/content/docs/management-api/endpoints/workspaces/get-workspaces.mdx`:
- Line 2: Update the page title and metaTitle strings to use more natural
phrasing: change the frontmatter/title value "Get list of workspaces" to "Get a
list of workspaces" and likewise update any metaTitle fields (e.g., metaTitle)
that currently say "Get list of workspaces" to "Get a list of workspaces" so
both the visible title and SEO metaTitle match the smoother grammar.

In `@apps/docs/scripts/generate-docs.ts`:
- Around line 83-109: The code only checks types for data.url, data.metaTitle,
and data.metaDescription so stale/incorrect string values persist; update the
logic in generate-docs.ts to compare the existing values against the computed
ones and set data.url = url, data.metaTitle = metaTitle, and
data.metaDescription = metaDescription whenever they differ (not just when the
type is not a string), and set changed = true on overwrite; specifically adjust
the checks around the variables data.url, title/metaTitle (computed from
operation.method, operation.path and title), and description/metaDescription to
perform value inequality checks before assigning.

In `@apps/docs/src/app/og/`[...slug]/route.tsx:
- Around line 206-207: Replace the unsafe casts to any by adding a proper type
for the page frontmatter shape and using it when reading _openapi; specifically
define an interface (e.g., OpenApiMeta { method?: string; path?: string }) or
extend the existing Page type so you can access (page.data as { _openapi?:
OpenApiMeta })._openapi.method and .path without using any, then update the two
reads for method and apiPath to use that typed shape (referencing page.data,
_openapi, method, apiPath) so TypeScript will catch schema drift at compile
time.

---

Outside diff comments:
In
`@apps/docs/content/docs/management-api/endpoints/databases/patch-databases-id.mdx`:
- Around line 1-21: The docs generator is producing duplicate endpoint files
(e.g., patch-databases-id.mdx and patch-databases-by-database-id.mdx) causing
duplicated docs for the same path; update the generation logic to emit only one
canonical filename pattern (choose either the "-id.mdx" or "-by-database-id.mdx"
convention) and remove the alternate duplicates during generation, ensuring the
generator code that builds filenames (the routine that maps endpoint
path/operation to output filename) normalizes path variables consistently and
only writes the single chosen file for symbols like patch-databases-id.mdx,
delete-databases-id.mdx, get-databases-id.mdx, etc.; if migration is needed,
optionally add a cleanup step to delete the obsolete files after generation so
only the canonical files remain.

In `@apps/docs/src/app/og/`[...slug]/route.tsx:
- Around line 38-53: Normalize and validate the HTTP method before using it to
pick a color: convert the incoming method to a canonical form (e.g.,
methodNormalized = method?.toUpperCase()) and only set methodColor from
HTTP_METHOD_COLORS if HTTP_METHOD_COLORS hasOwnProperty(methodNormalized);
otherwise set methodColor to null so unsupported/typo values don't render a
badge. Update the code that computes methodColor and any other badge rendering
sites (the other occurrence using method/HTTP_METHOD_COLORS) to use
methodNormalized and the explicit presence check rather than relying on the
fallback color.

---

Nitpick comments:
In
`@apps/docs/content/docs/management-api/endpoints/workspaces/get-workspaces-by-id.mdx`:
- Line 2: The page title "Get workspace" is too generic; update the
frontmatter/title in the file (currently "title: Get workspace") to a more
specific label such as "Get workspace by ID" so it disambiguates this endpoint
from list/read-all pages in navigation and search; ensure any top-level header
or title field in get-workspaces-by-id.mdx is changed to the new string.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5cef2bf8-6783-49a1-a5dd-7cc24d990fbe

📥 Commits

Reviewing files that changed from the base of the PR and between 2b4ab2a and 858706a.

📒 Files selected for processing (49)
  • apps/docs/content/docs/management-api/endpoints/connections/delete-connections-by-id.mdx
  • apps/docs/content/docs/management-api/endpoints/connections/delete-connections.mdx
  • apps/docs/content/docs/management-api/endpoints/connections/get-connections-by-id.mdx
  • apps/docs/content/docs/management-api/endpoints/connections/get-connections.mdx
  • apps/docs/content/docs/management-api/endpoints/connections/post-connections.mdx
  • apps/docs/content/docs/management-api/endpoints/database-backups/get-databases-by-database-id-backups.mdx
  • apps/docs/content/docs/management-api/endpoints/database-backups/get-databases-id-backups.mdx
  • apps/docs/content/docs/management-api/endpoints/database-usage/get-databases-by-database-id-usage.mdx
  • apps/docs/content/docs/management-api/endpoints/database-usage/get-databases-id-usage.mdx
  • apps/docs/content/docs/management-api/endpoints/databases-connections/get-databases-by-database-id-connections.mdx
  • apps/docs/content/docs/management-api/endpoints/databases-connections/get-databases-id-connections.mdx
  • apps/docs/content/docs/management-api/endpoints/databases-connections/post-databases-by-database-id-connections.mdx
  • apps/docs/content/docs/management-api/endpoints/databases-connections/post-databases-id-connections.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/delete-databases-by-database-id.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/delete-databases-id.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/get-databases-by-database-id.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/get-databases-id.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/get-databases.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/get-projects-by-project-id-databases.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/get-projects-id-databases.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/patch-databases-by-database-id.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/patch-databases-id.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/post-databases.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/post-projects-by-project-id-databases.mdx
  • apps/docs/content/docs/management-api/endpoints/databases/post-projects-id-databases.mdx
  • apps/docs/content/docs/management-api/endpoints/integrations/delete-integrations-by-id.mdx
  • apps/docs/content/docs/management-api/endpoints/integrations/delete-integrations.mdx
  • apps/docs/content/docs/management-api/endpoints/integrations/delete-workspaces-by-workspace-id-integrations-by-client-id.mdx
  • apps/docs/content/docs/management-api/endpoints/integrations/delete-workspaces-id-integrations-id.mdx
  • apps/docs/content/docs/management-api/endpoints/integrations/get-integrations-by-id.mdx
  • apps/docs/content/docs/management-api/endpoints/integrations/get-integrations.mdx
  • apps/docs/content/docs/management-api/endpoints/integrations/get-workspaces-by-workspace-id-integrations.mdx
  • apps/docs/content/docs/management-api/endpoints/integrations/get-workspaces-id-integrations.mdx
  • apps/docs/content/docs/management-api/endpoints/misc/get-regions-accelerate.mdx
  • apps/docs/content/docs/management-api/endpoints/misc/get-regions-postgres.mdx
  • apps/docs/content/docs/management-api/endpoints/projects/delete-projects-by-id.mdx
  • apps/docs/content/docs/management-api/endpoints/projects/delete-projects.mdx
  • apps/docs/content/docs/management-api/endpoints/projects/get-projects-by-id.mdx
  • apps/docs/content/docs/management-api/endpoints/projects/get-projects.mdx
  • apps/docs/content/docs/management-api/endpoints/projects/patch-projects-by-id.mdx
  • apps/docs/content/docs/management-api/endpoints/projects/patch-projects.mdx
  • apps/docs/content/docs/management-api/endpoints/projects/post-projects-by-id-transfer.mdx
  • apps/docs/content/docs/management-api/endpoints/projects/post-projects-transfer.mdx
  • apps/docs/content/docs/management-api/endpoints/projects/post-projects.mdx
  • apps/docs/content/docs/management-api/endpoints/regions/get-regions.mdx
  • apps/docs/content/docs/management-api/endpoints/workspaces/get-workspaces-by-id.mdx
  • apps/docs/content/docs/management-api/endpoints/workspaces/get-workspaces.mdx
  • apps/docs/scripts/generate-docs.ts
  • apps/docs/src/app/og/[...slug]/route.tsx

@argos-ci
Copy link

argos-ci bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ⚠️ Changes detected (Review) 1 changed Mar 5, 2026, 6:45 PM

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.github/workflows/sync-management-api-docs.yml (1)

34-40: Remove duplicate OpenAPI fetch in workflow.

generate:management-api-docs already runs fetch-openapi, so Lines 34–37 do the same fetch twice.

♻️ Proposed workflow simplification
-      - name: Fetch OpenAPI spec
-        working-directory: apps/docs
-        run: pnpm fetch-openapi
-
       - name: Generate docs
         working-directory: apps/docs
         run: pnpm run generate:management-api-docs
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/sync-management-api-docs.yml around lines 34 - 40, Remove
the redundant "Fetch OpenAPI spec" job step since the npm script
generate:management-api-docs already runs fetch-openapi; delete the step with
name "Fetch OpenAPI spec" (the working-directory apps/docs run: pnpm
fetch-openapi) so only the "Generate docs" step that runs pnpm run
generate:management-api-docs remains, avoiding duplicate fetches in the
workflow.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/sync-management-api-docs.yml:
- Around line 34-40: Remove the redundant "Fetch OpenAPI spec" job step since
the npm script generate:management-api-docs already runs fetch-openapi; delete
the step with name "Fetch OpenAPI spec" (the working-directory apps/docs run:
pnpm fetch-openapi) so only the "Generate docs" step that runs pnpm run
generate:management-api-docs remains, avoiding duplicate fetches in the
workflow.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 81b3d624-9e58-4f18-b534-3d1c44702553

📥 Commits

Reviewing files that changed from the base of the PR and between 858706a and a1f07c8.

📒 Files selected for processing (10)
  • .github/workflows/sync-management-api-docs.yml
  • apps/docs/content/docs/management-api/endpoints/databases-connections/delete-connections.mdx
  • apps/docs/content/docs/management-api/endpoints/databases-connections/meta.json
  • apps/docs/content/docs/management-api/endpoints/databases/meta.json
  • apps/docs/content/docs/management-api/endpoints/integrations/meta.json
  • apps/docs/content/docs/management-api/endpoints/projects/meta.json
  • apps/docs/package.json
  • apps/docs/scripts/generate-docs.ts
  • apps/docs/src/app/og/[...slug]/route.tsx
  • package.json
💤 Files with no reviewable changes (1)
  • apps/docs/content/docs/management-api/endpoints/databases-connections/delete-connections.mdx

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