From cffdd88ea37dcef01085febdc6b2d90e82eaadc4 Mon Sep 17 00:00:00 2001 From: Den Kovalevskyi Date: Thu, 28 Dec 2023 21:16:06 +0100 Subject: [PATCH 1/2] Auto generate release notes --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5290f3c..ab1badd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,3 +35,4 @@ jobs: with: artifacts: "app/target/universal/gen4s-app-*.zip" token: ${{ secrets.GITHUB_TOKEN }} + generateReleaseNotes: true From 391d3bb9bb123f044f10cf4b8a12464966f74758 Mon Sep 17 00:00:00 2001 From: Den Kovalevskyi Date: Sat, 13 Jan 2024 13:43:45 +0100 Subject: [PATCH 2/2] Limit number of samples to generate to 1M --- app/src/main/scala/io/gen4s/cli/CliArgsParser.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/scala/io/gen4s/cli/CliArgsParser.scala b/app/src/main/scala/io/gen4s/cli/CliArgsParser.scala index 0c23b0b..eb95727 100644 --- a/app/src/main/scala/io/gen4s/cli/CliArgsParser.scala +++ b/app/src/main/scala/io/gen4s/cli/CliArgsParser.scala @@ -38,8 +38,8 @@ class CliArgsParser extends scopt.OptionParser[Args]("gen4s") { .text("Samples to generate, default 1") .valueName("") .validate(x => - if (x > 0) success - else failure("Option --samples must be > 0") + if (x > 0 && x <= 1000_000) success + else failure("Option --samples must be > 0 < 1M") ) )