A simple API for interacting with a github repo via the v3 API
Add this line to your application's Gemfile:
gem 'github_repository'
And then execute:
$ bundle
Or install it yourself as:
$ gem install github_repository
repo = GithubRepository.get('username/repository_name',
login: '[email protected]',
password: 'y0uRP@55w0rD',
)
repo['Gemfile'].exist?
repo['Gemfile'].update('some content', :author_email => "[email protected]", :message => "fixed a bug")
repo['Gemfile'].delete
repo['Gemfile'].read
repo['Gemfile'].to_s
repo['config/database.yml']
repo.head # => Github::Repo::Sha
master = repo.branch('master') # => Github::Repo::Sha
master['Gemfile'].to_s
master.tree # => Github::Repo::Tree
master.blobs
rails = GithubRepository['rails/rails']
rails['README.md'].content
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request