Skip to content

Commit 370c909

Browse files
committed
Missing cleaner for event path
1 parent 627d6dd commit 370c909

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

coverage_comment/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ def clean_coverage_path(cls, value: str) -> pathlib.Path:
127127
def clean_github_output(cls, value: str) -> pathlib.Path:
128128
return pathlib.Path(value)
129129

130+
@classmethod
131+
def clean_github_event_path(cls, value: str) -> pathlib.Path:
132+
return pathlib.Path(value)
133+
130134
@property
131135
def GITHUB_PR_NUMBER(self) -> int | None:
132136
# "refs/pull/2/merge"

tests/unit/test_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_config__from_environ__ok():
3535
"GITHUB_REF": "master",
3636
"GITHUB_OUTPUT": "foo.txt",
3737
"GITHUB_EVENT_NAME": "pull",
38-
"GITHUB_EVENT_PATH": pathlib.Path("test_event_path"),
38+
"GITHUB_EVENT_PATH": "test_event_path",
3939
"GITHUB_PR_RUN_ID": "123",
4040
"GITHUB_STEP_SUMMARY": "step_summary",
4141
"COMMENT_ARTIFACT_NAME": "baz",

0 commit comments

Comments
 (0)