Press "Enter" to skip to content

如何下载Github仓库的全部issue

Git 仓库好备份,可是 Github 上面的 issue 如何备份呢?毕竟有些博客的评论是放在 Github Issue 上面,为防止评论数据丢失,有必要做点适当的备份。

利用 Github 官方的命令行工具——gh,可以一行命令下载一个仓库的全部issue。

示例,以 json 格式输出 saveweb/doing 仓库的全部 issue 到 a.json 文件中:

gh issue --repo saveweb/doing list -s all -L 10000000 --json assignees,author,body,closed,closedAt,comments,createdAt,id,labels,milestone,number,projectCards,reactionGroups,state,title,updatedAt,url > a.json

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注