Skip to main content

cnb-upload-attachment

上传附件到 Issue 或 PR 评论。

跳到安装

来源信息

仓库
locusyuri/scoop-violet
最近来源活动
2026年8月12日 13:53
检测到的 SKILL.md 语言
中文
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
cnb-upload-attachment
description
上传附件到 Issue 或 PR 评论。
# 上传附件到 Issue / PR 将本地文件上传到 CNB 平台的 Issue 或 PR,返回可嵌入评论的 Markdown 附件链接。 ## 使用场景 - 在 Issue 或 PR 评论中附加截图、日志文件、构建产物等 - 上传图片(png/jpg/gif/svg/webp)或普通文件(zip/pdf/log 等) ## 执行步骤 ### 1. 判断文件类别 根据文件扩展名判断使用哪个命令: - **图片**(`.png`, `.jpg`, `.jpeg`, `.gif`, `.svg`, `.webp`, `.ico` 等图片类型)→ 使用 `upload-image` - **其他文件** → 使用 `upload-file` ### 2. 执行上传 上传图片: ```bash cnb issues upload-image --file 本地文件路径 cnb pulls upload-image --file 本地文件路径 ``` 上传普通文件: ```bash cnb issues upload-file --file 本地文件路径 cnb pulls upload-file --file 本地文件路径 ``` ### 3. 使用上传结果 命令返回 JSON,其中包含 `asset_link` 字段,即附件的 Markdown 链接,可直接嵌入评论使用。
在 GitHub 查看