MT-22692: Organization sub-accounts - #18
Conversation
|
Warning Review limit reached
Next review available in: 46 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
a9fc921 to
2df8e8b
Compare
bc0168d to
12682e0
Compare
2df8e8b to
bd9e144
Compare
12682e0 to
237404d
Compare
51957f4 to
d86d430
Compare
237404d to
d08c72a
Compare
d86d430 to
60ad753
Compare
Add sub-accounts management (client.SubAccounts): List and Create under an organization. The organization is a fixed per-token scope, configured once via the new WithOrganizationID option rather than passed per call. Includes httptest coverage, examples/sub-accounts, and a README entry.
d08c72a to
cc0973c
Compare
Motivation
Adds organization sub-account management to the Go SDK: list and create the sub-accounts of an organization.
Changes
client.SubAccounts):ListandCreateagainst/api/organizations/{organization_id}/sub_accounts, with the{account: {name}}request wrapper.WithOrganizationIDclient option. The organization endpoints require the id in the path and have no account-less twin (unlike the account resources), and a token maps to exactly one organization — so it is a fixed per-token scope configured once at construction rather than passed to every call. Calls without it fail fast with a clear error.examples/sub-accounts+ README entry.Field shapes and paths verified against the OpenAPI spec (
account-management). Surface mirrors the Node.jsclient.organizationsgrouping.How to test
go test -race ./...go vet ./...golangci-lint run ./...