Skip to content

Commit

Permalink
chore: update inputs.ts adding comment about fetch_depth (#2000)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Mar 20, 2024
1 parent 427adf4 commit 0276805
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions 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 dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ export const getInputs = (): Inputs => {
}

if (fetchDepth) {
// Fallback to at least 2 if the fetch_depth is less than 2
inputs.fetchDepth = Math.max(parseInt(fetchDepth, 10), 2)
}

Expand Down

0 comments on commit 0276805

Please sign in to comment.