arunoda/nariya — Issue #6: Do not deploy with bitbucket on multi commits
Author: arunoda
Created: 2011-12-10 09:55:14+00:00
State: open
Labels: Bug

Bitbucket commits in array and those elements contains the branch.
But some of the elements does not contains the branch name.
One might can (I think)
So we need to check the whole array for this.

### sample payload
~~~
payload=%7B%22repository%22%3A+%7B%22website%22%3A+%22http%3A%2F%2Fkodeincloud.com%2F%22%2C+%22fork%22%3A+false%2C+%22name%22%3A+%22appzone-cloud-simulator%22%2C+%22scm%22%3A+%22git%22%2C+%22absolute_url%22%3A+%22%2Farunoda%2Fappzone-cloud-simulator%2F%22%2C+%22owner%22%3A+%22arunoda%22%2C+%22slug%22%3A+%22appzone-cloud-simulator%22%2C+%22is_private%22%3A+true%7D%2C+%22commits%22%3A+%5B%7B%22node%22%3A+%221d4f6d526b31%22%2C+%22files%22%3A+%5B%7B%22type%22%3A+%22modified%22%2C+%22file%22%3A+%22package.json%22%7D%5D%2C+%22branches%22%3A+%5B%5D%2C+%22branch%22%3A+null%2C+%22utctimestamp%22%3A+%222011-12-10+09%3A48%3A43%2B00%3A00%22%2C+%22author%22%3A+%22arunoda%22%2C+%22timestamp%22%3A+%222011-12-10+10%3A48%3A43%22%2C+%22raw_node%22%3A+%221d4f6d526b31b7d677f3cb79022db8be27339b55%22%2C+%22parents%22%3A+%5B%2288bba5d7c13e%22%5D%2C+%22raw_author%22%3A+%22Arunoda+Susiripala+%3Carunoda.susiripala%40gmail.com%3E%22%2C+%22message%22%3A+%22added+spaces+to+readme%5Cn%22%2C+%22size%22%3A+-1%2C+%22revision%22%3A+null%7D%2C+%7B%22node%22%3A+%22dd7e13fafaf3%22%2C+%22files%22%3A+%5B%7B%22type%22%3A+%22modified%22%2C+%22file%22%3A+%22package.json%22%7D%5D%2C+%22branches%22%3A+%5B%5D%2C+%22branch%22%3A+null%2C+%22utctimestamp%22%3A+%222011-12-10+09%3A48%3A59%2B00%3A00%22%2C+%22author%22%3A+%22arunoda%22%2C+%22timestamp%22%3A+%222011-12-10+10%3A48%3A59%22%2C+%22raw_node%22%3A+%22dd7e13fafaf34ea6624a12ea9221051b32fa6251%22%2C+%22parents%22%3A+%5B%221d4f6d526b31%22%5D%2C+%22raw_author%22%3A+%22Arunoda+Susiripala+%3Carunoda.susiripala%40gmail.com%3E%22%2C+%22message%22%3A+%22added+removed+to+readme%5Cn%22%2C+%22size%22%3A+-1%2C+%22revision%22%3A+null%7D%2C+%7B%22node%22%3A+%22a0e0cfed8eb2%22%2C+%22files%22%3A+%5B%7B%22type%22%3A+%22modified%22%2C+%22file%22%3A+%22readme.md%22%7D%5D%2C+%22branch%22%3A+%22master%22%2C+%22utctimestamp%22%3A+%222011-12-10+09%3A49%3A11%2B00%3A00%22%2C+%22author%22%3A+%22arunoda%22%2C+%22timestamp%22%3A+%222011-12-10+10%3A49%3A11%22%2C+%22raw_node%22%3A+%22a0e0cfed8eb2ed8f1154c24b943e5959d01bad05%22%2C+%22parents%22%3A+%5B%22dd7e13fafaf3%22%5D%2C+%22raw_author%22%3A+%22Arunoda+Susiripala+%3Carunoda.susiripala%40gmail.com%3E%22%2C+%22message%22%3A+%22added+removed+to+readme%5Cn%22%2C+%22size%22%3A+-1%2C+%22revision%22%3A+null%7D%5D%2C+%22canon_url%22%3A+%22https%3A%2F%2Fbitbucket.org%22%2C+%22user%22%3A+%22arunoda%22%7D
~~~