Skip to content

Commit cd6966d

Browse files
committed
add detect and get_service_name to the template provider
1 parent 45fa481 commit cd6966d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

codecov_cli/helpers/ci_adapters/template.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
class TemplateAdapter(CIAdapterBase):
77
# link for env variables
88

9+
def detect(self) -> bool:
10+
"""
11+
Detects if this CI provider is being used
12+
Returns bool
13+
"""
14+
return False
15+
916
def _get_branch(self):
1017
"""
1118
Determine the branch of the repository based on envs
@@ -62,3 +69,10 @@ def _get_pull_request_number(self):
6269
Returns: string
6370
"""
6471
return None
72+
73+
def get_service_name(self):
74+
"""
75+
The CI Service name that gets displayed when running the uploader
76+
Returns: string
77+
"""
78+
return None

0 commit comments

Comments
 (0)