Skip to content

Commit

Permalink
support new gitlab variable
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
uilianries committed Jun 1, 2023
1 parent 3f3539a commit f269093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

__version__ = '0.39.0'
__version__ = '0.39.1'


def get_client_version():
Expand Down
2 changes: 1 addition & 1 deletion cpt/ci_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def get_commit_id(self):
return os.getenv("CI_COMMIT_SHA", None)

def get_branch(self):
return os.getenv("CI_BUILD_REF_NAME", None)
return os.getenv("CI_BUILD_REF_NAME", None) or os.getenv("CI_COMMIT_REF_NAME", None)

def is_pull_request(self):
return os.getenv("CI_MERGE_REQUEST_ID", None)
Expand Down

0 comments on commit f269093

Please sign in to comment.