start-issue
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStart working on a Marshroom cart issue in the current repository.
Steps:
- Read and parse the JSON
~/.config/marshroom/state.json - Extract the array. If the cart is empty, tell the user to add issues in the Marshroom app
cart - Run to get the current repo's remote URL
git remote get-url origin - Extract from the remote URL (handle both HTTPS and SSH formats)
owner/repo - Filter cart entries where (HTTPS) or
repoCloneURL(SSH) matches the current remote. Compare by extractingrepoSSHURLfrom eachowner/repo - If no matching cart entries, tell the user this repo has no cart issues
- If contains an issue number, find that entry; otherwise if multiple matches, list them and ask the user to pick one
$ARGUMENTS - Run to ensure main is up to date
git checkout main && git pull origin main - Create and checkout the branch: The branch name should be
git checkout -b {branchName}orFeature/#N.HotFix/#Nis issue number.N - Update issue status: run (if
marsh start #{issueNumber}is available in PATH). Ifmarshis not found, skip this step silently.marsh - Inject issue context:
- Read the field from the matched cart entry
issueBody - If non-null, display it under a "## Issue Details" header
- This gives the agent full context about what needs to be done
- Read the
- Confirm the branch was created and display:
- Issue: #{issueNumber} {issueTitle}
- Branch: {branchName}
- Repository: {repoFullName}
- Status: running
- Ask the user permission to start planning to resolve issue. If the user allows it, starts planning using /plan mode.
在当前仓库中开始处理Marshroom购物车问题。
步骤:
- 读取并解析该JSON文件
~/.config/marshroom/state.json - 提取数组。如果购物车为空,告知用户在Marshroom应用中添加问题
cart - 运行获取当前仓库的远程URL
git remote get-url origin - 从远程URL中提取(同时支持HTTPS和SSH格式)
owner/repo - 过滤出(HTTPS格式)或
repoCloneURL(SSH格式)与当前远程仓库匹配的购物车条目。通过提取每个条目中的repoSSHURL进行比较owner/repo - 如果没有匹配的购物车条目,告知用户此仓库没有待处理的购物车问题
- 如果中包含问题编号,找到对应的条目;如果存在多个匹配项,则列出这些条目并让用户选择其一
$ARGUMENTS - 运行以确保main分支是最新的
git checkout main && git pull origin main - 创建并切换分支:。分支名称应为
git checkout -b {branchName}或Feature/#N,其中HotFix/#N是问题编号。N - 更新问题状态:运行(如果
marsh start #{issueNumber}在PATH环境变量中可用)。如果未找到marsh,则静默跳过此步骤。marsh - 注入问题上下文:
- 从匹配的购物车条目中读取字段
issueBody - 如果该字段不为空,在"## Issue Details"标题下显示内容
- 这会为Agent提供关于需要完成任务的完整上下文
- 从匹配的购物车条目中读取
- 确认分支已创建并显示以下信息:
- 问题:#{issueNumber} {issueTitle}
- 分支:{branchName}
- 仓库:{repoFullName}
- 状态:运行中
- 请求用户许可以开始规划解决该问题。如果用户同意,则使用/plan模式开始规划。