Skip to content

Commit 9685d77

Browse files
committed
another quick fix
1 parent 66c9311 commit 9685d77

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

codecov-cli/codecov_cli/helpers/ci_adapters/github_actions.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,26 @@ def detect(self) -> bool:
1212

1313
def _get_commit_sha(self):
1414
pr = self._get_pull_request_number()
15+
print("pr", pr)
1516
commit = os.getenv("GITHUB_SHA")
17+
print("commit", commit)
1618

1719
if not pr:
20+
print("no pr")
1821
return commit
1922

2023
# actions/checkout should be run with fetch-depth > 1 or set to 0 for this to work
2124
completed_subprocess = subprocess.run(
2225
["git", "rev-parse", "HEAD^@"], capture_output=True
2326
)
24-
27+
print("completed_subprocess", completed_subprocess)
2528
parents_hash = completed_subprocess.stdout.decode().strip().splitlines()
29+
print("parents_hash", parents_hash)
2630
if len(parents_hash) == 2:
31+
print("parents_hash[1]", parents_hash[1])
2732
return parents_hash[1]
2833

34+
print("commit", commit)
2935
return commit
3036

3137
def _get_build_url(self):

prevent-cli/preventcli_commands

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Options:
225225
brackets)
226226
-b, --build, --build-code TEXT Specify the build number manually
227227
--build-url TEXT The URL of the build where this is running
228-
--job-code TEXT
228+
--job-code TEXT Specify the job code manually
229229
-n, --name TEXT Custom defined name of the upload. Visible
230230
in Codecov UI
231231
-B, --branch TEXT Branch to which this commit belongs to

prevent-cli/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ requires-python = ">=3.9"
1010
dependencies = [
1111
"codecov-cli==11.2.0",
1212
"click==8.*",
13+
"sentry-sdk==2.*",
1314
]
1415

1516
[dependency-groups]

prevent-cli/uv.lock

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)