gh release edit
编辑发布
gh release edit <tag>
选项
-
--discussion-category <string> - 在发布草稿时,在指定类别中开始讨论
-
--draft - 将发布保存为草稿而不是发布
-
--latest - 明确将发布标记为“最新”
-n,--notes <string>- 发布说明
-F,--notes-file <file>- 从文件读取发布说明(使用 "-" 从标准输入读取)
-
--prerelease - 将发布标记为预发布
-
--tag <string> - 标签的名称
-
--target <branch> - 目标分支或完整提交 SHA(默认 [主分支])
-t,--title <string>- 发布标题
-
--verify-tag - 如果 git 标签不存在于远程存储库中,则中止
从父命令继承的选项
-R,--repo <[HOST/]OWNER/REPO>- 使用 [HOST/]OWNER/REPO 格式选择另一个存储库
示例
Publish a release that was previously a draft
$ gh release edit v1.0 --draft=false
Update the release notes from the content of a file
$ gh release edit v1.0 --notes-file /path/to/release_notes.md