CommitRepo
POST
/api/ToBackendCommitRepoCommit local changes in a repo branch
Request Body
application/json
Response Body
application/json
curl -X POST "http://localhost:3000/api/ToBackendCommitRepo" \ -H "Content-Type: application/json" \ -d '{ "info": { "name": "api/ToBackendCommitRepo", "traceId": "string", "idempotencyKey": "string" }, "payload": { "projectId": "string", "branchId": "string", "repoId": "string", "commitMessage": "string" } }'{
"info": {
"path": "/api/ToBackendCommitRepo",
"method": "POST",
"mproveVersion": "string",
"duration": 0,
"status": "Ok",
"traceId": "string",
"error": null
},
"payload": {
"repo": {
"orgId": "string",
"projectId": "string",
"repoId": "string",
"currentBranchId": "string",
"repoStatus": "NeedCommit",
"conflicts": [
{
"fileId": "string",
"fileName": "string",
"lineNumber": -9007199254740991
}
],
"nodes": [
{
"id": "string",
"isFolder": true,
"name": "string",
"fileId": "string",
"children": [
{
"id": "string",
"isFolder": true,
"name": "string",
"fileId": "string",
"children": []
}
]
}
],
"changesToCommit": [
{
"fileName": "string",
"fileId": "string",
"parentPath": "string",
"status": "New",
"content": "string"
}
],
"changesToPush": [
{
"fileName": "string",
"fileId": "string",
"parentPath": "string",
"status": "New",
"content": "string"
}
]
},
"session": {
"sessionId": "string",
"opencodeSessionId": "string",
"type": "Explorer",
"provider": "string",
"agent": "string",
"model": "string",
"lastMessageProviderModel": "string",
"lastMessageVariant": "string",
"status": "string",
"archiveReason": "User",
"pauseReason": "User",
"repoId": "string",
"branchId": "string",
"initialBranch": "string",
"envId": "string",
"initialCommit": "string",
"createdTs": -9007199254740991,
"lastActivityTs": -9007199254740991,
"firstMessage": "string",
"title": "string",
"useCodex": true,
"closedExplorerTabIds": [
"string"
]
}
}
}