Skip to content

Commit f269093

Browse files
committed
support new gitlab variable
Signed-off-by: Uilian Ries <[email protected]>
1 parent 3f3539a commit f269093

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
__version__ = '0.39.0'
2+
__version__ = '0.39.1'
33

44

55
def get_client_version():

cpt/ci_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def get_commit_id(self):
244244
return os.getenv("CI_COMMIT_SHA", None)
245245

246246
def get_branch(self):
247-
return os.getenv("CI_BUILD_REF_NAME", None)
247+
return os.getenv("CI_BUILD_REF_NAME", None) or os.getenv("CI_COMMIT_REF_NAME", None)
248248

249249
def is_pull_request(self):
250250
return os.getenv("CI_MERGE_REQUEST_ID", None)

0 commit comments

Comments
 (0)