Skip to content

Commit c793522

Browse files
committed
feat: add validation for the collapsed input parameter
Generated-by: Claude Sonnet 4.5
1 parent 5fb0582 commit c793522

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

dist/index.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ class TestReporter {
6767
return
6868
}
6969

70+
if (this.collapsed !== 'auto' && this.collapsed !== 'always' && this.collapsed !== 'never') {
71+
core.setFailed(`Input parameter 'collapsed' has invalid value`)
72+
return
73+
}
74+
7075
if (isNaN(this.maxAnnotations) || this.maxAnnotations < 0 || this.maxAnnotations > 50) {
7176
core.setFailed(`Input parameter 'max-annotations' has invalid value`)
7277
return

0 commit comments

Comments
 (0)