Skip to content

Instantly share code, notes, and snippets.

@maltefiala
Last active September 5, 2015 11:07
Show Gist options
  • Save maltefiala/945d9d9de113edf88f16 to your computer and use it in GitHub Desktop.
Save maltefiala/945d9d9de113edf88f16 to your computer and use it in GitHub Desktop.
Create Github Issuelist
import json
with open('issuelist_json') as json_data:
myjson = json.load(json_data)
for issue in myjson:
print("- [ ]", "[" + issue["title"] + "](" + issue["html_url"], ")" )
@maltefiala
Copy link
Author

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

@ThomasWaldmann
Copy link

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. :)

@maltefiala
Copy link
Author

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