Trellish
Trellish is used to finish a Trello card. It does everything necessary to move a development card from the In Progress list to the QA list.
Installation
Add this line to your application's Gemfile:
gem 'trellish'
And then execute:
$ bundle
Or install it yourself as:
$ gem install trellish
Usage
Create a trellish.yml file in your current directory or home directory. Set it up like this:
- Sign in to Trello and go to https://trello.com/1/appKey/generate.
- Copy "Key" from that page to trello_api_key.
- Copy "Secret (for OAuth signing)" from that page to trello_oauth_secret.
- Visit https://trello.com/1/authorize?key=TRELLO\_API\_KEY\_FROM\_ABOVE&name=Trellish&expiration=never&response_type=token&scope=read,write
- Copy the token to trello_oauth_token.
- Run:
curl -u 'username' -d '{"scopes":["repo"],"note":"Trellish"}' https://api.github.com/authorizations
- Copy the token parameter from the response to github_oauth_token.
git checkout
the topic branch for the card you are finishing. Then do this:
trellish https://trello.com/c/a3Wbcde4
or alternately:
trellish a3Wbcde4
This will:
- create a pull request to merge your topic branch into master
- add a link to the pull request to the beginning of the card description
- remove everyone from the card
- move the card to the QA list
Certificate issues
If you're stuck with an error along the lines of
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
try updating your root certificates. If you use RVM, this may work:
curl http://curl.haxx.se/ca/cacert.pem -o ~/.rvm/usr/ssl/cert.pem
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request