Created
December 15, 2012 22:03
-
-
Save aliou/4299687 to your computer and use it in GitHub Desktop.
issue backup
This file contains hidden or 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
require 'json' | |
require 'github_api' | |
github = Github.new basic_auth: 'USERNAME:PASSWORD' | |
issues = [] | |
tmp = github.issues.list :user => 'USERNAME', :repo => 'REPONAME', :state => 'closed' | |
issues << tmp | |
tmp = github.issues.list :user => 'USERNAME', :repo => 'REPONAME', :state => 'open' | |
issues << tmp | |
# order by id | |
puts JSON.pretty_generate issues |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment