Skip to content

Default API token minting to the selected organization - #1068

Merged
pedrocarlo merged 2 commits into
mainfrom
fix/api-token-mint-selected-org
Sep 27, 2026
Merged

pedrocarlo merged 2 commits into
mainfrom
fix/api-token-mint-selected-org

Conversation

@pedrocarlo

Copy link
Copy Markdown
Collaborator

Summary

  • Send the CLI-selected organization in the mint request body when --org is omitted.
  • Preserve explicit --org override and existing group validation.
  • Add mock-server regression coverage for both request bodies.

Verification

  • go test ./internal/cmd -run ^TestMintApiTokenOrganization$ -count=1 -v
  • go test ./...
  • go vet ./...
  • go build ./...
  • git diff --check and gofmt check

No live k3d/platform test was run in this orb; the relevant platform behavior is on https://github.com/tursodatabase/turso-platform/pull/4464.

Source thread: https://ampcode.com/threads/T-01a0e444-1bf8-76f4-b168-2351886d2bc6

pedrocarlo and others added 2 commits September 27, 2026 22:32
@pedrocarlo
pedrocarlo merged commit b77837a into main Sep 27, 2026
1 check passed
@pedrocarlo
pedrocarlo deleted the fix/api-token-mint-selected-org branch September 27, 2026 23:48
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.

2 participants