File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22# Questions for community features
3+
4+ # the main menu
35SelectCommunityFeatures :
46 when : " {{ template_profile != 'minimum' }}"
57 type : yaml
68 default : |-
79 {% if template_profile == 'recommended' %}
8- [AddCodeConduct, AddContributing ]
10+ [AddCodeConduct_flag, AddContributing_flag ]
911 {%- else -%}
1012 []
1113 {%- endif %}
1214 help : Select community features
1315 multiselect : true
1416 choices :
1517 Code of conduct :
16- value : AddCodeConduct
18+ value : AddCodeConduct_flag
1719 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
1820 Contributing guidelines :
19- value : AddContributing
21+ value : AddContributing_flag
2022 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
23+
24+ # computed features
25+ AddCodeConduct :
26+ type : bool
27+ default : " {{ 'AddCodeConduct_flag' in SelectCommunityFeatures }}"
28+ when : false
29+
30+ AddContributing :
31+ type : bool
32+ default : " {{ 'AddContributing_flag' in SelectCommunityFeatures }}"
33+ when : false
You can’t perform that action at this time.
0 commit comments