Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit a7c1f56

Browse files
authored
Merge pull request #54 from franciscomemoli/patch-1
Support bitbucket tags on git pull option
2 parents 0e49228 + 4a69d44 commit a7c1f56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

functions/source/GitPullS3/lambda_function.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ def lambda_handler(event, context):
190190
try:
191191
# Bibucket server
192192
branch_name = event['body-json']['push']['changes'][0]['new']['name']
193+
if(event['body-json']['push']['changes'][0]['new']['type'] == 'tag'):
194+
branch_name = 'tags/'+event['body-json']['push']['changes'][0]['new']['name']
193195
except:
194196
branch_name = 'master'
195197
try:

0 commit comments

Comments
 (0)