Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 172b914

Browse files
committed
add CI_REPOSITORY_URL for gitlab #96
1 parent 8a99060 commit 172b914

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codecov/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ def main(*argv, **kwargs):
478478

479479
if os.getenv('CI_BUILD_REPO'):
480480
query['slug'] = os.getenv('CI_BUILD_REPO').split('/', 3)[-1].replace('.git', '')
481+
elif os.getenv('CI_REPOSITORY_URL'):
482+
query['slug'] = os.getenv('CI_REPOSITORY_URL').split('/', 3)[-1].replace('.git', '')
481483

482484
write(' Gitlab CI Detected')
483485

0 commit comments

Comments
 (0)