lib/targit/client.rb in targit-2.0.0 vs lib/targit/client.rb in targit-2.0.1
- old
+ new
@@ -20,12 +20,14 @@
auto_paginate: true
)
end
def octoauth_options
- autosave = @options[:autosave] || true
{
- note: 'targit', files: authfiles, autosave: autosave, scopes: ['user']
+ note: 'targit',
+ files: authfiles,
+ autosave: @options[:autosave] || true,
+ scopes: ['public_repo']
}
end
def authfiles
return [:default] unless @options[:authfile]