msvrtan's blog

Github and Trello integration

After working with git for more then 2 years, few months ago I decided to start using Github to store my repos and test different workflow arrangements. It worked out great, I'm really happy with all it offers (it is a little bit pricy for my taste though) and I'm loving it.

In admin section of my repos some time ago I noticed unfamiliar term called 'Service Hooks' and decided to explore it. Service hooks are already prepared git post receive hooks for integration with other popular web services (description) . Since I use Trello for todo's on some of my pet projects I decided to connect this two webservices.

For easier demonstration I opened a new github repo, Trello board and connected them.

Trello board for testing integration

github project for testing trello integration

Now every new commit on master branch is shown in list 'Commits on master' and new pull requests in 'Pull requests'. It is really simple but effective way of tracking stuff to do on smaller projects, I hope to be able to test it very soon in a little bit larger environment though.

It is really easy to setup, after allowing github to access your Trello account via token you can add new pull requests cards to different board then commit cards. It also features ignoring some commits from creation by tracking only master branch or by setting up regular expressions.

Trello service hook form on github

Short guide with 4 steps is located under the form (not shown on screenshot here).

One crucial thing missing here is integration of issues. It would be very helpful if issues could be sent too but this is something I'm currently testing with Zapier (and much more but this will be subject for one of next posts :).

Feel free to fork repository & generate pull requests, this repository and board are used only for demonstration purposes!