feat(issue): add batch comment shortcut with dry-run support #14
Loading…
Reference in New Issue
No description provided.
Delete Branch "wangyue111/gitlink-cli:feat/issue-batch-comment"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
PR #12 已新增
issue +batch-close,解决了仓库维护者批量关闭过期/重复/已完成 Issue 的需求。但真实社区治理里,直接关闭 Issue 往往过于生硬,维护者通常需要先批量留言提醒、补充说明或请求确认,再根据反馈决定是否关闭。本 PR 在 Issue 批量维护链路中新增一个更安全的前置动作:
issue +batch-comment。新增功能
新增
gitlink-cli issue +batch-comment:--numbers 1,2,3,语义与 v1 API 保持一致,传入网页 URL 中的 Issue 编号(project_issues_index),不是数据库 ID--from issues.csv从 CSV 读取 Issue 编号--body/-b指定批量评论内容--dry-run预览,不修改线上数据total/succeeded/failed/resultsissue +batch-close保持一致API
每个 Issue 使用已有 v1 评论接口:
示例
测试
已完成本地验证:
真实仓库验证:在 fork 仓库
wangyue111/gitlink-cli创建测试 Issue#6,dry-run 和真实批量评论均成功,comment_journals_count从 0 变为 1;验证结束后已关闭测试 Issue,描述仍保留。文档
README.md/README.zh-CN.mdskills/README.mdskills/gitlink-issue/SKILL.mdskills/gitlink-issue/references/gitlink-issue-batch-comment.md与 PR #12/#13 的关系
issue +batch-closeissue +batch-comment,作为批量关闭前的沟通和提醒能力Pull request closed