close_merge_request关闭合并请求Input schema{
"type": "object",
"properties": {
"targetProjectId": {
"type": "number",
"description": "目标项目 ID"
},
"mergeRequestIid": {
"type": "string",
"description": "MR 内部 ID"
}
},
"required": [
"targetProjectId",
"mergeRequestIid"
]
} | — | | — |
create_branch创建新分支Input schema{
"type": "object",
"properties": {
"projectId": {
"type": "number",
"description": "项目 ID"
},
"branchName": {
"type": "string",
"description": "新分支名"
},
"ref": {
"type": "string",
"description": "源分支/标签",
"default": "master"
}
},
"required": [
"projectId",
"branchName"
]
} | — | | — |
create_merge_request创建合并请求 (MR)Input schema{
"type": "object",
"properties": {
"sourceProjectId": {
"type": "number",
"description": "源项目 ID"
},
"targetProjectId": {
"type": "number",
"description": "目标项目 ID"
},
"sourceBranch": {
"type": "string",
"description": "源分支名"
},
"targetBranch": {
"type": "string",
"description": "目标分支名"
},
"title": {
"type": "string",
"description": "MR 标题"
},
"description": {
"type": "string",
"description": "MR 描述"
}
},
"required": [
"sourceProjectId",
"targetProjectId",
"sourceBranch",
"targetBranch"
]
} | — | | — |
create_merge_request_to_public创建从个人仓库到公共仓库的合并请求Input schema{
"type": "object",
"properties": {
"projectName": {
"type": "string",
"description": "项目名称"
},
"sourceBranch": {
"type": "string",
"description": "源分支名"
},
"targetBranch": {
"type": "string",
"description": "目标分支名"
},
"title": {
"type": "string",
"description": "MR 标题"
},
"description": {
"type": "string",
"description": "MR 描述"
}
},
"required": [
"projectName",
"sourceBranch",
"targetBranch"
]
} | — | | — |
delete_branch删除分支Input schema{
"type": "object",
"properties": {
"projectId": {
"type": "number",
"description": "项目 ID"
},
"branchName": {
"type": "string",
"description": "分支名"
}
},
"required": [
"projectId",
"branchName"
]
} | — | | — |
get_current_user获取当前 GitLab 用户信息Input schema{
"type": "object",
"properties": {}
} | — | | — |
get_merge_request_status获取合并请求状态Input schema{
"type": "object",
"properties": {
"targetProjectId": {
"type": "number",
"description": "目标项目 ID"
},
"mergeRequestIid": {
"type": "string",
"description": "MR 内部 ID"
}
},
"required": [
"targetProjectId",
"mergeRequestIid"
]
} | — | | — |
get_project获取项目详情Input schema{
"type": "object",
"properties": {
"projectId": {
"type": "number",
"description": "项目 ID"
}
},
"required": [
"projectId"
]
} | — | | — |
get_project_ids搜索项目并获取项目 ID 映射Input schema{
"type": "object",
"properties": {
"projectName": {
"type": "string",
"description": "项目名称"
}
},
"required": [
"projectName"
]
} | — | | — |
get_repository_branches获取仓库所有分支Input schema{
"type": "object",
"properties": {
"projectId": {
"type": "number",
"description": "项目 ID"
}
},
"required": [
"projectId"
]
} | — | | — |
merge_branch执行分支合并Input schema{
"type": "object",
"properties": {
"targetProjectId": {
"type": "number",
"description": "目标项目 ID"
},
"mergeRequestIid": {
"type": "string",
"description": "MR 内部 ID"
}
},
"required": [
"targetProjectId",
"mergeRequestIid"
]
} | — | | — |
wait_for_mergeable_status等待 MR 状态变为可合并Input schema{
"type": "object",
"properties": {
"targetProjectId": {
"type": "number",
"description": "目标项目 ID"
},
"mergeRequestIid": {
"type": "string",
"description": "MR 内部 ID"
},
"timeout": {
"type": "number",
"description": "超时时间 (毫秒)",
"default": 300000
}
},
"required": [
"targetProjectId",
"mergeRequestIid"
]
} | — | | — |