start-issue

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

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