@@ -5,15 +5,15 @@ SelectCodeQualityFeatures:
55 type : yaml
66 default : |-
77 {% if template_profile == 'recommended' %}
8- [select_github_actions_flag , not_implemented_linting, AddSonarCloud, not_implemented_editor_config]
8+ [SelectGitHubActions_flag , not_implemented_linting, AddSonarCloud, not_implemented_editor_config]
99 {%- else -%}
1010 []
1111 {%- endif %}
1212 help : Select code quality features
1313 multiselect : true
1414 choices :
1515 GitHub Actions :
16- value : select_github_actions_flag
16+ value : SelectGitHubActions_flag
1717 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
1818 Linting (using ruff NOT_IMPLEMENTED) :
1919 value : not_implemented_linting
@@ -28,25 +28,37 @@ SelectCodeQualityFeatures:
2828 value : not_implemented_editor_config
2929 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
3030
31- # TODO: split AddGitHubActions --> enable_github_actions_build and enable_github_actions_documentation
31+
3232SelectGitHubActions :
33- when : " {{ 'select_github_actions_flag ' in SelectCodeQualityFeatures }}"
33+ when : " {{ 'SelectGitHubActions_flag ' in SelectCodeQualityFeatures }}"
3434 type : yaml
3535 default : |-
3636 {% if template_profile == 'recommended' %}
37- [not_implemented_enable_github_actions_build, not_implemented_enable_github_actions_documentation ]
37+ [AddGitHubActionBuild, AddGitHubActionDocumentation ]
3838 {%- else -%}
3939 []
4040 {%- endif %}
4141 help : Select GitHub Action workflows
4242 multiselect : true
4343 choices :
44- Build (NOT_IMPLEMENTED) :
45- value : not_implemented_enable_github_actions_build
44+ Build :
45+ value : AddGitHubActionBuild_flag
4646 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
47- Documentation (NOT_IMPLEMENTED) :
48- value : not_implemented_enable_github_actions_documentation
47+ Documentation :
48+ value : AddGitHubActionDocumentation_flag
4949 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
5050 Link checker (reports broken URLs) :
5151 value : AddLinkCheck
5252 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
53+
54+
55+ # computed features
56+ AddGitHubActionBuild :
57+ type : bool
58+ default : " {{ 'AddGitHubActionBuild_flag' in SelectGitHubActions }}"
59+ when : false
60+
61+ AddGitHubActionDocumentation :
62+ type : bool
63+ default : " {{ 'AddGitHubActionDocumentation_flag' in SelectGitHubActions }}"
64+ when : false
0 commit comments