GitHub has a great Statuses API. This gives you a great way to update the information from your automated build process. Giving you a quick overview of the status of a branch.
This is pretty simple to set up. We'll use two small scripts and cURL. First let's add a Script task at the start of our build. This will update the branch status so we know it's building.
Add this task at the very start of the build.
The script looks like this:
This updates GitHub and shows that branches status as 'building'.
Now all we have to do is update the build at the end as well. We will use grep to count the errors in the reports. This was we can include this on the branch details.
This updates GitHub will the status and the number of each type of error. You instantly know the status/mergeability of any branch in your repository.
There you have it. A quick and simple way to set up Bamboo to update GitHub with build statuses. Your team will always know the status of every branch in your repo.