Skip to content

Commit ad87f53

Browse files
committed
add computed values and flags for community features
1 parent da7448f commit ad87f53

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
11
---
22
# Questions for community features
3+
4+
# the main menu
35
SelectCommunityFeatures:
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

0 commit comments

Comments
 (0)