workflow_issue_to_delivery
Delivers an existing GitLab issue end-to-end by creating a branch, commit, merge request, issue comment, local sync, and issue log.
Instructions
Use when an existing issue_iid should be delivered end-to-end: branch, commit, MR, issue comment, local sync, and issue log. Before composing commit_actions, first call workflow_prepare_delivery_workspace and use its preparation_key here. Then inspect the issue text and any screenshots. If the issue may contain image references, call gitlab_get_issue_images(project_id, issue_iid, include_base64=true) first and review the returned image blocks. Do not call this twice for the same issue or same user request. If the issue and MR may already exist, inspect GitLab first before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preparation_key | Yes | Required key returned by workflow_prepare_delivery_workspace. Delivery is rejected if the prepared base branch is no longer current. | |
| delivery_method | No | Delivery implementation mode. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_DELIVERY_METHOD overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| issue_project_id | No | Issue project ID. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_ISSUE_PROJECT_ID overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| issue_project_path | No | Issue project path. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_ISSUE_PROJECT_PATH overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| issue_iid | Yes | Issue IID. | |
| issue_images_reviewed | No | Set to true only after you have inspected issue images with gitlab_get_issue_images(..., include_base64=true). Required when the target issue contains screenshots or image references. | |
| code_project_id | No | Code project ID. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_CODE_PROJECT_ID overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| code_project_path | No | Code project path. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_CODE_PROJECT_PATH overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| target_branch | No | MR target branch. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_TARGET_BRANCH overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| branch_name | No | Optional branch name override. | |
| english_slug | No | Optional English slug used when generating branch name. | |
| work_type | No | Optional git/conventional work type override like feat, fix, docs, refactor, hotfix, feature. | |
| summary | No | Optional summary used for branch/commit/MR title. | |
| commit_message | No | Optional commit message. | |
| commit_actions | No | Commit actions list. Required when delivery_method=remote_api. | |
| change_summary | Yes | Change summary used in MR description and issue log. | |
| test_plan | Yes | Test/acceptance plan used in MR description. | |
| label | No | Optional MR label. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_LABEL overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| assignee_username | No | Optional assignee username for MR. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_ASSIGNEE_USERNAME overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| checkout_local_branch | No | Whether to fetch/pull and switch local repo to target branch. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_CHECKOUT_LOCAL_BRANCH overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| issue_comment_body | No | Direct issue comment body. | |
| implementation_summary | No | Implementation summary for generated issue comment. | |
| acceptance_steps | No | Acceptance steps for generated issue comment. | |
| update_log | No | Whether to update local issue log. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_UPDATE_ISSUE_LOG overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| log_path | No | Issue log path. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_ISSUE_LOG_PATH overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. This field matters only when update_log=true. | |
| log_status | No | Issue log status text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded. | |
| tool | Yes | Tool name. | |
| data | No | Issue to MR full-chain workflow result. | |
| error_type | No | Error type when ok=false. | |
| message | No | Error message when ok=false. |