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

Commit b69e396

Browse files
committed
fix: match previous logic
1 parent 662064a commit b69e396

File tree

2 files changed

+682
-3
lines changed

2 files changed

+682
-3
lines changed

codecov_cli/helpers/ci_adapters/github_actions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
import re
33
import subprocess
4-
54
from codecov_cli.helpers.ci_adapters.base import CIAdapterBase
65

76

@@ -66,10 +65,10 @@ def _get_slug(self):
6665
return os.getenv("GITHUB_REPOSITORY")
6766

6867
def _get_branch(self):
69-
def remove_prefix(s, prefix):
68+
def remove_prefix(s: str, prefix: str) -> str:
7069
if s.startswith(prefix):
7170
return s[len(prefix) :]
72-
return s
71+
return ""
7372

7473
head_ref = os.getenv("GITHUB_HEAD_REF", "")
7574
ref = remove_prefix(os.getenv("GITHUB_REF", ""), "refs/heads/")

0 commit comments

Comments
 (0)