Merge pull request #123 from coreos-inc/bbcommitfix

Switch BitBucket code to always use the latest commit
This commit is contained in:
Jimmy Zelinskie 2015-06-11 14:29:43 -04:00
commit c3a738c7c2

View file

@ -516,7 +516,7 @@ class BitbucketBuildTrigger(BuildTriggerHandler):
raise SkipRequestException()
# Check if this build should be skipped by commit message.
commit = payload['commits'][0]
commit = payload['commits'][-1]
commit_message = commit['message']
if should_skip_commit(commit_message):
logger.debug('Skipping BitBucket request due to commit message request')