Skip to content

docs(api): publish the current v1 public API spec - #331

Merged
pv72895 merged 3 commits into
mainfrom
api/publish-v1-openapi-spec
Sep 11, 2026
Merged

pv72895 merged 3 commits into
mainfrom
api/publish-v1-openapi-spec

Conversation

@pv72895

@pv72895 pv72895 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Replaces openapi.json with the current export of the v1 public API and wires the new endpoints into the docs.

New endpoints

Endpoint What it does
POST /getSubmittedPullRequests Batch form of getSubmittedPullRequest; unsubmitted PRs come back in notFound rather than failing the request
POST /listMergeQueueTestingResults Completed merge queue testing over a time range, newest first; feed testRunId into /getMergeQueueTestingDetails

Also newly published: /listPullRequests

Not new to the API — it shipped in March, was announced in the changelog, and has been in openapi.json the whole time. It just was never added to the navigation, so it had no reference page. It has one now.

The landing page also gains a short note on choosing between the three read endpoints, since /listPullRequests and /getSubmittedPullRequests are easy to confuse: the getSubmittedPullRequest(s) pair looks up pull requests you can already name and returns the full record for each, while /listPullRequests is the discovery endpoint — cursor-paginated, filtered by state or concluded time range, returning a summary row per PR.

All three endpoints are added to the Merge Queue API navigation in docs.json and to the summary table and endpoint cards on merge-queue/reference/merge.mdx.

Updated endpoints

Ten existing endpoints pick up fields and sharper descriptions. The notable ones:

  • getSubmittedPullRequest — optional includeTimeline, returning every state change with its cause (cancellation reasons, branch-protection block reasons, conflict culprit, failing checks)
  • listPullRequests — the until bound on the concluded-time range
  • getQueue / updateQueueallowedBotSubmitters, stateLabelsEnabled, testBranchConstructionMode, notReadyTimeoutHours; pendingFailureDepth and testingTimeoutMinutes now accept 0 to disable
  • getMergeQueueTestingDetails — the PENDING / WAITING / REQUESTED deployment-gate check states
  • Flaky Tests list endpoints — bazel_label on test cases

No endpoints or schemas were removed, and the export carries forward the docs-side edits made to the previous spec (the labelled pr number/branch oneOf and its branch-resolution prose), so nothing hand-written is lost.

Verification

  • mint validate — build validation passed
  • mint broken-links — no broken links (confirmed the checker does resolve OpenAPI-generated slugs, by watching it fail on a deliberately bad one)

🤖 Generated with Claude Code

Replace openapi.json with the current export of the v1 public API.
Two endpoints are new — /getSubmittedPullRequests (the batch form of
getSubmittedPullRequest) and /listMergeQueueTestingResults (completed
testing over a time range) — and ten existing endpoints pick up new
fields and sharper descriptions, notably getSubmittedPullRequest's
optional `timeline`, /listPullRequests' `until` bound, and several new
queue settings on get/updateQueue.

Add both new endpoints to the Merge Queue API navigation and to the
summary table and endpoint cards on the API reference landing page.

The export carries forward the docs-side edits made to the previous
spec (the labelled pr number/branch oneOf, the branch-resolution prose),
so nothing hand-written here is lost.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
trunk 🟢 Ready View Preview Sep 11, 2026, 4:23 PM

The endpoint has shipped since March and was announced in the changelog,
but it had no reference page — it was in the spec and missing from the
navigation. Add it, and explain on the landing page how it differs from
the two getSubmittedPullRequest endpoints: those look up pull requests
you can already name, this one is how you find out which pull requests
are there.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The entry landed with `date: "2026-08-26T00:00:00.000Z"`, which
`date.fromisoformat` cannot parse, so the changelog nav check has been
failing on main since #315 and the sync job has never run on this entry.
Every other entry uses a plain `YYYY-MM-DD`.

Its title also disagreed with the two index pages: the frontmatter read
"Browser Extension 1.0.0 : Out of beta", with a stray space before the
colon, while #315 hand-wrote the tidier "Browser Extension 1.0: Out of
beta" into both. Fix the frontmatter rather than regenerate the typo
into the indexes — the generated pages then need no change at all.

Unrelated to the API spec in this PR; it surfaced here because the check
also runs on docs.json.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@pv72895
pv72895 merged commit 10675d7 into main Sep 11, 2026
3 checks passed
@mintlify

mintlify Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Docs PR opened: #332

Added a changelog entry announcing new Merge Queue API endpoints, a newly documented list endpoint, and expanded fields on existing endpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant