File tree Expand file tree Collapse file tree
codecov-cli/codecov_cli/helpers/ci_adapters Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,26 +12,19 @@ def detect(self) -> bool:
1212
1313 def _get_commit_sha (self ):
1414 pr = self ._get_pull_request_number ()
15- print ("pr" , pr )
1615 commit = os .getenv ("GITHUB_SHA" )
17- print ("commit" , commit )
1816
1917 if not pr :
20- print ("no pr" )
2118 return commit
2219
2320 # actions/checkout should be run with fetch-depth > 1 or set to 0 for this to work
2421 completed_subprocess = subprocess .run (
2522 ["git" , "rev-parse" , "HEAD^@" ], capture_output = True
2623 )
27- print ("completed_subprocess" , completed_subprocess )
2824 parents_hash = completed_subprocess .stdout .decode ().strip ().splitlines ()
29- print ("parents_hash" , parents_hash )
3025 if len (parents_hash ) == 2 :
31- print ("parents_hash[1]" , parents_hash [1 ])
3226 return parents_hash [1 ]
3327
34- print ("commit" , commit )
3528 return commit
3629
3730 def _get_build_url (self ):
You can’t perform that action at this time.
0 commit comments