Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion functions/source/GitPullS3/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ def lambda_handler(event, context):
# Bibucket server
branch_name = event['body-json']['push']['changes'][0]['new']['name']
except:
branch_name = 'master'
# Bitbucket Server v6.6.1
try:
branch_name = event['body-json']['changes'][0]['ref']['displayId']
except:
branch_name = 'master'
try:
# GitLab
remote_url = event['body-json']['project']['git_ssh_url']
Expand Down