简体   繁体   中英

Download and save GitHub issues via command line

如何通过命令行(终端)下载并保存某个存储库的所有GitHub问题?

This bash-script downloads the issues from the GitHub API and saves them as one YAML-file per issue:

count=0 http -a <username> -b \
https://api.github.com/repos/<username>/<repo>/issues?state=all\&sort=created\&direction=asc \
| json -0 -a \
| while read -r line; \
do (( count++ )); echo $line | js-yaml > $count.yaml; done

For a full explanation check out:

http://adriansieber.com/download-github-issues-from-command-line

(Disclaimer: I'm the author of the post)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM