Skip to content

Commit

Permalink
chore: update inputs.ts adding comment about fetch_depth
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Mar 20, 2024
1 parent 427adf4 commit 7668ea5
Showing 1 changed file with 1 addition and 0 deletions.
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 7668ea5

Please sign in to comment.