Add token support, resolved #19.

Use CHANGELOG_GITHUB_TOKEN variable to specify token in the shell.
This commit is contained in:
Petr Korolev
2014-11-12 17:59:40 +02:00
parent 91229c7472
commit 03bca478c8
6 changed files with 44 additions and 11 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class Parser
opts.on('-p', '--project [PROJECT]', 'Name of project on GitHub') do |last|
options[:project] = last
end
opts.on('-t', '--token [TOKEN]', 'To make more than 50 requests this script required your OAuth token for GitHub. You can generate it on https://github.com/settings/applications') do |last|
opts.on('-t', '--token [TOKEN]', 'To make more than 50 requests this script required your OAuth token for GitHub. You can generate here: https://github.com/settings/tokens/new') do |last|
options[:token] = last
end
opts.on('-h', '--help', 'Displays Help') do