Skip to content

Commit a38f099

Browse files
committed
Merge branch 'main' into test-action-2
2 parents 9b1a43c + f321f19 commit a38f099

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ inputs:
2121
line-numbers:
2222
description: "List of files with added and removed lines, use action 'Equip-Collaboration/diff-line-numbers' for that"
2323
ts-config-path:
24-
description: "Path of tsconfig file. default is '.'"
24+
description: "Path of tsconfig file. default is './tsconfig.json'"
2525
default: './tsconfig.json'
2626
use-check:
2727
description: 'Report status as a CI Check'
@@ -31,7 +31,6 @@ inputs:
3131
output-behaviour:
3232
description: "Allowed values : comment, annotate, both"
3333
default: "comment"
34-
required: false
3534
debug:
3635
description: "Set true to log ts errors in base branch and pr branch"
3736
default: false

src/getAndValidateArgs.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ type Args = {
5252

5353
export function getAndValidateArgs(): Args {
5454
const args = {
55-
repoToken: getInput('repo-token', { required: true, trimWhitespace: true }),
56-
directory: getInput('directory', { trimWhitespace: true }),
57-
tsConfigPath: getInput('ts-config-path', { trimWhitespace: true, required: true }),
55+
repoToken: getInput('repo-token', { required: true }),
56+
directory: getInput('directory'),
57+
tsConfigPath: getInput('ts-config-path'),
5858
filesChanged: (getInput('files-changed') ?? "").split(" "),
5959
filesAdded: (getInput('files-added') ?? "").split(" "),
6060
filesDeleted: (getInput('files-deleted') ?? "").split(" "),
61-
lineNumbers: JSON.parse(getInput('line-numbers')) ?? [],
61+
lineNumbers: JSON.parse(getInput('line-numbers')),
6262
useCheck: getBooleanInput('use-check'),
63-
checkFailMode: getInput('check-fail-mode') as CHECK_FAIL_MODE,
63+
checkFailMode: getInput('check-fail-mode', { required: true }) as CHECK_FAIL_MODE,
6464
outputBehaviour: getInput('output-behaviour') as OUTPUT_BEHAVIOUR,
6565
debug: getBooleanInput('debug')
6666
}

0 commit comments

Comments
 (0)