Skip to content

Commit 7172cef

Browse files
committed
Fix handling of blank 'git-diff-options' input
1 parent 028ad69 commit 7172cef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function evaluatePullRequest(
8686
const diff = await SizeUp.diff(
8787
core.getInput('token'),
8888
pull.base.ref,
89-
core.getInput('git-diff-options').split(/\s+/)
89+
core.getInput('git-diff-options').split(/\s+/).filter(Boolean)
9090
)
9191

9292
const score = await SizeUp.evaluate(diff, sizeupConfigPath)

0 commit comments

Comments
 (0)