Skip to content

Commit

Permalink
Use yearRange instead of startYear
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrohdezma committed Nov 22, 2022
1 parent 75e0651 commit c382d72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ object SbtGithubHeaderPlugin extends AutoPlugin {
headerLicense := LicenseDetection(
licenses.value.toList,
copyrightOwner.value,
startYear.value,
yearRange.value.flatMap(_.split("-").headOption).map(_.toInt),
yearRange.value.flatMap(_.split("-").lastOption).map(_.toInt),
headerLicenseStyle.value
),
Expand Down

0 comments on commit c382d72

Please sign in to comment.