We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Setup github instance:
github = Github.new oauth_token: '...'
Create a new download resource:
res = github.repos.create_download 'username', 'reponame', 'name': 'droid10', 'size': File.size('path_to_file.jpg'), 'content_type': 'image/jpeg'
and then use the response object and given file path to upload it to amazon s3:
github.repos.upload res, 'path_to_file.jpg'
There was an error while loading. Please reload this page.