Skip to content

fix(docs): resolve CLI command names to documentation pages - #14

Merged
cb-muthiahm merged 1 commit into
fix/consistent-api-operation-namesfrom
fix/docs-command-lookup
Oct 12, 2026
Merged

cb-muthiahm merged 1 commit into
fix/consistent-api-operation-namesfrom
fix/docs-command-lookup

Conversation

@cb-muthiahm

Copy link
Copy Markdown
Collaborator

What changed

  • Generate a command-to-OpenAPI-operation-ID lookup from the same SDK endpoints and public specs as the API commands.
  • Resolve chargebee docs <resource> <operation> by the exact operation ID slug across the sitemap, accepting both kebab-case CLI resource names and existing snake_case Docs names.
  • Keep exact Docs slugs working and report missing or ambiguous pages without selecting a guessed page.

Verification

  • bun run generate --refresh
  • bun run typecheck
  • bun test src/tests/unit/lib/docs/docs.test.ts src/tests/integration/docs.test.ts src/tests/integration/generated-operation-names.test.ts (41 pass)
  • bun run test:source (1369 pass, before final fixture additions; focused tests rerun afterward)

Stacked on the API operation naming PR. The local fix reference document is not part of this PR.

@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (7)
  • main
  • master
  • develop
  • dev
  • develop/.*
  • staging/.*
  • release/.*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: d25516e3-c749-488a-99d0-81e76fe1a575

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@snyk-io

snyk-io Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown
Contributor

Test coverage

✅ Gate passed — all 78 files are at or above the 95% floor.

Status Metric Coverage Threshold
✅ Functions 99.90% 95%
✅ Lines 99.45% 95%

@cb-muthiahm
cb-muthiahm merged commit 20ba440 into fix/consistent-api-operation-names Oct 12, 2026
32 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.

1 participant