Skip to content

Commit

Permalink
final test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Becker committed Jun 11, 2024
1 parent 49f0b8d commit f15cf05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipeline/GitLabCommit.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ class GitLabCommit(GitCommit):
'''
def __init__(self):
gitlab_commit_message = os.environ.get('CI_COMMIT_MESSAGE')
pipeline_source = os.environ.get('CI_PIPELINE_SOURCE')
# Wenn Prod Pipeline
if gitlab_commit_message and "Merge branch '" in gitlab_commit_message:
if pipeline_source == 'merge_request_event' and "Merge branch '" in gitlab_commit_message:
match = re.search(r"Merge branch '([^']*)'", gitlab_commit_message)
if match:
gitlab_branch_name = match.group(1)
Expand Down

0 comments on commit f15cf05

Please sign in to comment.