Last active
September 5, 2015 11:07
-
-
Save maltefiala/945d9d9de113edf88f16 to your computer and use it in GitHub Desktop.
Create Github Issuelist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
with open('issuelist_json') as json_data: | |
myjson = json.load(json_data) | |
for issue in myjson: | |
print("- [ ]", "[" + issue["title"] + "](" + issue["html_url"], ")" ) |
btw, the whole point of "with" is that you do not need that json_data.close() as it will be closed automatically when leaving the "with"-block.
btw, I just ran the script again and will update the borg issue to keep track of the attic issues.
thanks for finding out a half automated way. :)
Yeah, it is a 5 minutes piece of junk, I second that :). Pagination should be automated as well with while true or similar, I will come back to this when I have regained some spare time.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pull the issues with curl / anything else. Don't forget the pagination:
curl -i -u <user> "https://api.github.com/repos/jborg/attic/issues?state=open&page=1&per_page=100" -o issuelist_json