Skip to content

fix(ci): omit empty pr_number meta from preview deploys - #274

Merged
nickvigilante merged 1 commit into
mainfrom
vigilante/preview-empty-pr-meta
Oct 28, 2026
Merged

nickvigilante merged 1 commit into
mainfrom
vigilante/preview-empty-pr-meta

Conversation

@nickvigilante

Copy link
Copy Markdown
Collaborator

Merge order

Independent. The OpenAPI spike (#273) carries the same commit so its preview can deploy before this lands.

Summary

Hand-dispatched runs of docs-pr-preview.yml leave pr_number empty, and the deploy step always passed --meta pr_number="" to the Vercel CLI. Vercel now rejects that with Invalid request: meta.pr_number should NOT be shorter than 1 characters, so every manual preview fails at the deploy step after a full build (run 40710687219).

Fix

The deploy step builds the --meta flags as an array and adds pr_number only when one was given. Calls from coder/coder with a PR number are unchanged.

QA

There is nothing to see on the site. The check is a manual preview run of #273's branch, which carries this commit, reaching "Deploy the prebuilt output as a coder-docs preview" and printing a URL.

Testing

actionlint (with ShellCheck) and oxfmt --check pass on the workflow.

Upstream

No: this is our own CI workflow.


🤖 Built with AI assistance.

A preview dispatched by hand has no pull request, and Vercel now rejects
the deploy with "meta.pr_number should NOT be shorter than 1 characters".
Pass the pr_number meta only when one was given.

Assisted-by: AI
@vercel

vercel Bot commented Oct 28, 2026

Copy link
Copy Markdown

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

2 Skipped Deployments
Project Deployment Actions Updated
coder-docs Ignored Ignored Oct 28, 2026 3:05pm UTC
coder-docs-router Ignored Ignored Oct 28, 2026 3:05pm UTC

Request Review

@nickvigilante
nickvigilante marked this pull request as ready for review October 28, 2026 15:18
@nickvigilante
nickvigilante requested a review from bpmct as a code owner October 28, 2026 15:18
@nickvigilante
nickvigilante merged commit a4969d7 into main Oct 28, 2026
29 checks passed
@nickvigilante
nickvigilante deleted the vigilante/preview-empty-pr-meta branch October 28, 2026 15:18
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