From dcfb59e7518af214f6d9da684f1892f912e24432 Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Wed, 15 May 2024 09:44:41 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Add=20AskAdvancedQuestio?= =?UTF-8?q?ns=20to=20allow=20stopping=20early?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AskAdvancedQuestions creates a separation between the basic questions and the questions that are opinative or advanced. In the future, we can create more fine-tuned defaults and let the user choose from them. ✅ Closes: #67 --- CHANGELOG.md | 1 + copier.yml | 12 ++++++++++++ test/runtests.jl | 1 + 3 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5912d48..2575f027 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning]. - Indentation option (#44) - CODE_OF_CONDUCT (#25) - Issue and Pull Request templates (#33) +- AskAdvancedQuestions question to allow stopping early (#67) ### Fixed diff --git a/copier.yml b/copier.yml index 4b9f04cc..ff527e70 100644 --- a/copier.yml +++ b/copier.yml @@ -33,31 +33,43 @@ License: - GPL-3.0 - MIT - MPL-2.0 + default: MIT + +AskAdvancedQuestions: + type: bool + help: Ask further questions? You can stop now with the minimum and use default values. + default: false AddCodeOfConduct: + when: "{{ AskAdvancedQuestions }}" type: bool default: true help: Add a CODE_OF_CONDUCT.md file from Contributor Covenant? {{ AuthorEmail }} will be listed as contact point. Indentation: + when: "{{ AskAdvancedQuestions }}" type: int help: Indentation length for many formatters and linters validator: "{% if Indentation <= 0 %}Indentation must be positive{% endif %}" default: 2 AddMacToCI: + when: "{{ AskAdvancedQuestions }}" type: bool help: Add macos on CI? AddWinToCI: + when: "{{ AskAdvancedQuestions }}" type: bool help: Add windows on CI? RunJuliaNightlyOnCI: + when: "{{ AskAdvancedQuestions }}" type: bool help: Run the nightly version of Julia on CI? UseCirrusCI: + when: "{{ AskAdvancedQuestions }}" type: bool help: Create a .cirrusci.yml file? diff --git a/test/runtests.jl b/test/runtests.jl index 6e03a725..90347525 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -7,6 +7,7 @@ template_options = Dict( "PackageOwner" => "test", "AuthorName" => "Test", "AuthorEmail" => "test@me.now", + "AskAdvancedQuestions" => true, "JuliaMinVersion" => "1.6", "License" => "MIT", "AddCodeOfConduct" => true,