Merge pull request #123 from coreos-inc/bbcommitfix
Switch BitBucket code to always use the latest commit
This commit is contained in:
commit
c3a738c7c2
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Reference in a new issue