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:
POSTon/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:
GETon/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:
GETon/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:
GETon/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:
PUTon/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:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/pr-routes/route
prroutesRoute(args: { tenantId: string; projectId: string; body: RoutePrRequest }, options?: CallOptions): Promise<StoredRoute>