Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add finalized invoice exports under
depot org invoices:--org; preserve the token's organization unless explicitly selected. No interactive login.2ae2cc96583940688aa4b20766844296, retaining the existing Go generator and Connect runtime versions.Validation: full
go test ./...; organization-command race tests; golangci-lint; module verification/tidy; binary build and command-help smoke checks. Tests exercise real HTTP/2 Connect requests, auth headers, exact JSON amounts, empty-page continuation, invalid inputs, and API errors without retries. Hosted cross-platform packaging and upstream validation remain CI checks.Release after API #5892 is verified deployed. This CLI uses Buf modules directly and does not depend on the Go SDK release.
Part of DEP-4480. SDK counterparts: Node #36, Go #65.
Catch up on this pull request in Depot
Note
Medium Risk
Touches billing/invoice data and confidential document URLs in JSON responses, but the change is read-only CLI surfacing of an existing API with token-gated access and solid test coverage.
Overview
Adds
depot org invoiceswithlist,get, andline-itemsso automation can read finalized Stripe invoice data as protobuf JSON without fetching hosted/PDF links.Calls the new
BillingServiceviaNewBillingClient(), using static org tokens (--token/DEPOT_TOKEN) or an owner user token with--org—not the org fromorg switch, and no interactive login. List commands are single-page with--page-size(1–100) and--page-token, including empty pages that still return a continuation token.Bumps the generated
buf.buildAPI modules to commit2ae2cc965839, wires the command underdepot org, documents usage in the README, and adds HTTP/2 Connect tests for JSON amount precision, pagination, auth headers, validation, and error handling without retries.Reviewed by Cursor Bugbot for commit 9c8de5f. Bugbot is set up for automated code reviews on this repo. Configure here.