Skip to main content

approveUnlockRequest

client.reviewMerge.approveUnlockRequest(id: string, unlockRequestId: string, data?: Record<string, unknown>): Promise<unknown>

Approves an unlock request, releasing the lock on a review-merge request.

The lock holder calls this to grant an unlock request from another agent.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the review-merge request
unlockRequestIdstringYesThe unique identifier of the unlock request to approve
dataRecord<string, unknown>NoOptional additional data for the approval

Returns

Promise<unknown> — A promise that resolves when the unlock request has been approved

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.reviewMerge.approveUnlockRequest('id', 'unlockRequestId');
console.log(result);