Creates a new directory commit for an agent or skill repository by applying file/link create, update, and delete operations. Linked directories default to the LATEST selector; use COMMIT to pin one commit. The legacy commit_id write field is deprecated and resolves as LATEST.
commit(
repo: string,
params: DirectoryCommitParams,
options: RequestOptions
): APIPromise<DirectoryCommitResponse>| Name | Type | Description |
|---|---|---|
repo* | string | |
params* | DirectoryCommitParams | |
options | RequestOptions |
const response = await client.repos.directories.commit(
'repo',
{ owner: 'owner' },
);