We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 662064a commit b69e396Copy full SHA for b69e396
2 files changed
codecov_cli/helpers/ci_adapters/github_actions.py
@@ -1,7 +1,6 @@
1
import os
2
import re
3
import subprocess
4
-
5
from codecov_cli.helpers.ci_adapters.base import CIAdapterBase
6
7
@@ -66,10 +65,10 @@ def _get_slug(self):
66
65
return os.getenv("GITHUB_REPOSITORY")
67
68
def _get_branch(self):
69
- def remove_prefix(s, prefix):
+ def remove_prefix(s: str, prefix: str) -> str:
70
if s.startswith(prefix):
71
return s[len(prefix) :]
72
- return s
+ return ""
73
74
head_ref = os.getenv("GITHUB_HEAD_REF", "")
75
ref = remove_prefix(os.getenv("GITHUB_REF", ""), "refs/heads/")
0 commit comments