名称: linear-milestones-read 描述: 通过CLI列出Linear项目里程碑(只读操作) 版本: 1.0.0 许可证: MIT 兼容性: opencode
概述
用于读取Linear项目里程碑的CLI工具。需要在<git-root>/.env中设置或导出环境变量LINEAR_API_KEY。
前提条件
- 已安装 bun 运行时
- 在
<git-root>/.env或环境中设置LINEAR_API_KEY
命令
列出里程碑
bun .opencode/skill/linear-milestones-read/list-milestones.js [选项]
选项:
--project <名称>- 按项目名称筛选(除非使用–all,否则为必需)--all- 列出所有项目的里程碑--limit <n>- 最大结果数(默认:25)--json- 以JSON格式输出
示例:
bun .opencode/skill/linear-milestones-read/list-milestones.js --project "Mount Vernon"
bun .opencode/skill/linear-milestones-read/list-milestones.js --all --limit 10
bun .opencode/skill/linear-milestones-read/list-milestones.js --project "Monticello" --json
输出行为
- 命令输出直接显示在用户终端中
- 请勿重新总结或重新格式化表格输出 - 用户已能看到
- 仅当用户明确请求分析、筛选或总结时,才提供额外评论
- 当使用
--json输出与jq等工具时,处理后的结果已对用户可见
备注
- 项目名称支持部分匹配(不区分大小写)