presidentbeef / github-auto-locker

Automatically lock old, closed GitHub issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Needs better error handling

zenspider opened this issue · comments

(literal "token")

% ruby -Ilib bin/github-auto-locker seattlerb minitest token
/Users/ryan/Work/git/presidentbeef/github-auto-locker/lib/locker.rb:42:in `block in get_closed_issues': no implicit conversion of Hash into Array (TypeError)
	from /Users/ryan/Work/git/presidentbeef/github-auto-locker/lib/locker.rb:36:in `loop'
	from /Users/ryan/Work/git/presidentbeef/github-auto-locker/lib/locker.rb:36:in `get_closed_issues'
	from /Users/ryan/Work/git/presidentbeef/github-auto-locker/lib/locker.rb:18:in `lock'
	from bin/github-auto-locker:6:in `<main>'

the result coming back is:

{"message"=>"Bad credentials", "documentation_url"=>"https://developer.github.com/v3"}