Skip to content

Commit

Permalink
Fix handling of blank 'git-diff-options' input
Browse files Browse the repository at this point in the history
  • Loading branch information
lerebear committed Oct 18, 2024
1 parent 028ad69 commit e7fdccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function evaluatePullRequest(
const diff = await SizeUp.diff(
core.getInput('token'),
pull.base.ref,
core.getInput('git-diff-options').split(/\s+/)
core.getInput('git-diff-options').split(/\s+/).filter(Boolean)
)

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

0 comments on commit e7fdccb

Please sign in to comment.