Skip to main content

createUnlockRequest

client.reviewMerge.createUnlockRequest(id: string, data: CreateUnlockRequest): Promise<unknown>

Creates an unlock request for a locked review-merge request.

When a review is locked by another agent, this creates a formal request to unlock it. The lock holder can then approve or reject the unlock request.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the locked review-merge request
dataCreateUnlockRequestYesThe unlock request payload with reason and requester information

Returns

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

Example

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

const client = new CodeBoltClient();

const result = await client.reviewMerge.createUnlockRequest('id', /* CreateUnlockRequest */);
console.log(result);