Skip to content

SDK: prroutes

The prroutes methods of the Overlane TypeScript SDK, with their signatures. Generated from the SDK types.

Updated View as MarkdownOpen in ChatGPTOpen in Claude

The prroutes area has 6 methods on the client. Each takes one object of path, query and body arguments and an optional CallOptions, and returns a promise of the response body. A refused call rejects with OverlaneApiError (see the SDK index).

prroutesApprove

Approve a pull request in its lane (independence rules apply)

  • Request: POST on /v1/tenants/{tenantId}/projects/{projectId}/pr-routes/approve
prroutesApprove(args: { tenantId: string; projectId: string; body: RouteApproveRequest }, options?: CallOptions): Promise<Record<string, unknown>>

prroutesBatch

Batches of small pull requests

  • Request: GET on /v1/tenants/{tenantId}/projects/{projectId}/pr-routes/batch
prroutesBatch(args: { tenantId: string; projectId: string }, options?: CallOptions): Promise<Record<string, unknown>>

prroutesList

Pull requests with their routed lane

  • Request: GET on /v1/tenants/{tenantId}/projects/{projectId}/pr-routes
prroutesList(args: { tenantId: string; projectId: string }, options?: CallOptions): Promise<Record<string, unknown>>

prroutesPolicyGet

Read the project’s pull request routing policy

  • Request: GET on /v1/tenants/{tenantId}/projects/{projectId}/pr-routes/policy
prroutesPolicyGet(args: { tenantId: string; projectId: string }, options?: CallOptions): Promise<Record<string, unknown>>

prroutesPolicyPut

Change the project’s pull request routing policy

  • Request: PUT on /v1/tenants/{tenantId}/projects/{projectId}/pr-routes/policy
  • Needs an approval for agents: class policy_change
prroutesPolicyPut(args: { tenantId: string; projectId: string; body: PutRoutingPolicyRequest }, options?: CallOptions): Promise<Record<string, unknown>>

prroutesRoute

Route a pull request to a lane by risk

  • Request: POST on /v1/tenants/{tenantId}/projects/{projectId}/pr-routes/route
prroutesRoute(args: { tenantId: string; projectId: string; body: RoutePrRequest }, options?: CallOptions): Promise<StoredRoute>
Navigation

Type to search…

↑↓ navigate↵ selectEsc close

Overlane Agent

Ask about the docs. Answers are quoted from the pages, with links. This panel cannot change anything.

    Questions are answered in your browser from the docs index. Nothing you type here is stored or sent anywhere.