Skip to content

[wrangler] fix: remove trailing period after api-tokens URL in wrangler whoami output#14133

Merged
penalosa merged 1 commit into
cloudflare:mainfrom
matingathani:fix/whoami-trailing-period
Jun 1, 2026
Merged

[wrangler] fix: remove trailing period after api-tokens URL in wrangler whoami output#14133
penalosa merged 1 commit into
cloudflare:mainfrom
matingathani:fix/whoami-trailing-period

Conversation

@matingathani

Copy link
Copy Markdown
Contributor

Fixes #14102.

What this does

wrangler whoami was printing:

🔓 To see token permissions visit https://dash.cloudflare.com/.../api-tokens.

The trailing . became part of the URL when clicked in terminals and
GitHub Actions output, causing a 404.

Before: ...api-tokens. (period is part of the clickable URL)
After: ...api-tokens (period removed; comma added before "visit")

Tests

  • Tests included/updated — updated inline snapshot in deploy/core.test.ts; all 20 whoami.test.ts tests pass

Documentation

  • Documentation not necessary because: single-character output fix, no new API surface

… output

Fixes cloudflare#14102.

The message "To see token permissions visit https://.../api-tokens."
ended with a period that was included in the URL when clicked from
terminals and GitHub Actions output, causing a 404. Move the sentence
punctuation before "visit" (adding a comma) so the URL has no trailing
period.
Copilot AI review requested due to automatic review settings June 1, 2026 06:47
@changeset-bot

changeset-bot Bot commented Jun 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4b6af21

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Jun 1, 2026
@workers-devprod workers-devprod requested review from a team and penalosa and removed request for a team June 1, 2026 06:47
@workers-devprod

workers-devprod commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

Copilot AI 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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Removes a trailing period from the wrangler whoami token-permissions URL so terminals/GitHub Actions don’t include punctuation in the clickable link (preventing 404s).

Changes:

  • Update whoami output string to remove trailing . and improve sentence flow.
  • Update deploy snapshot to match the new output.
  • Add a changeset documenting the patch.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/wrangler/src/user/whoami.ts Adjusts the logged URL so it’s not polluted by trailing punctuation.
packages/wrangler/src/tests/deploy/core.test.ts Updates snapshot expectation to match the new log output.
.changeset/whoami-trailing-period.md Adds a patch changeset explaining the fix and why it matters.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pkg-pr-new

pkg-pr-new Bot commented Jun 1, 2026

Copy link
Copy Markdown
create-cloudflare

npm i https://pkg.pr.new/cloudflare/workers-sdk/create-cloudflare@14133

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/deploy-helpers@14133

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/kv-asset-handler@14133

miniflare

npm i https://pkg.pr.new/cloudflare/workers-sdk/miniflare@14133

@cloudflare/pages-shared

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/pages-shared@14133

@cloudflare/unenv-preset

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/unenv-preset@14133

@cloudflare/vite-plugin

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/vite-plugin@14133

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/vitest-pool-workers@14133

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/workers-editor-shared@14133

@cloudflare/workers-utils

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/workers-utils@14133

wrangler

npm i https://pkg.pr.new/cloudflare/workers-sdk/wrangler@14133

@cloudflare/wrangler-bundler

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/wrangler-bundler@14133

commit: 4b6af21

@workers-devprod workers-devprod 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.

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Jun 1, 2026
@penalosa penalosa merged commit 59e43e4 into cloudflare:main Jun 1, 2026
74 of 76 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

wrangler whoami output: Trailing period after api-token url causes 404

4 participants