BuPr
Run bundle update and create its pull-request.
Installation
gem 'bu_pr', group: :development
And then execute:
$ bundle
Or install it yourself as:
$ gem install bu_pr
Usage
Get Github access token from this page with repo scope.
Set configuration values as Environment variables.
# .bash_profile / .profile / .zshrc / etc.
export BUPR_TOKEN="xxx"
export BUPR_REPO="mmyoji/bu_pr"
# export BUPR_BRANCH="develop"
# export BUPR_TITLE="My bundle update"
Set configuration values in config file.
require 'bu_pr'
# Setup
BuPr.configure do |config|
config.token = "xxx" # Required
config.repo = "mmyoji/bu_pr" # Required
config.branch = "develop" # Optional :: default is 'master'
config.title = "My bundle update" # Optional :: default is like 'Bundle update 2016-11-13'
end
BuPr::Runner.call
Rails
# config/initializers/bu_pr.rb
BuPr.configure do |config|
config.token = "xxx"
config.repo = "mmyoji/bu_pr"
end
then run the following commands
# Run all tasks
$ bin/rake bu_pr:all
# If you want to execute each task,
# Run `bundle update` only
$ bin/rake bu_pr:bu
# Create pull-request
$ bin/rake bu_pr:pr
# Add gem diff comment
$ bin/rake bu_pr:diff
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/mmyoji/bu_pr.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.