Skip to content

Commit ba27323

Browse files
committed
add computed values and flags for publish and release features
1 parent 5b651a4 commit ba27323

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
11
---
22
# Questions for publishing and releasing features
3+
4+
# the main menu
35
SelectPublishReleaseFeatures:
46
when: "{{ template_profile != 'minimum' }}"
57
type: yaml
68
default: |-
79
{% if template_profile == 'recommended' %}
8-
[select_citation_flag, AddZenodo]
10+
[SelectCitation_flag, AddZenodo]
911
{%- else -%}
1012
[]
1113
{%- endif %}
1214
help: Select publish and release features
1315
multiselect: true
1416
choices:
1517
Citation:
16-
value: select_citation_flag
18+
value: SelectCitation_flag
1719
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
1820
Changelog:
19-
value: AddChangeLog
21+
value: AddChangeLog_flag
2022
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2123
Zenodo integration instructions:
22-
value: AddZenodo
24+
value: AddZenodo_flag
2325
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2426
Package keywords(NOT_IMPLEMENTED):
2527
value: not_implemented_keywords
2628
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2729

2830

31+
# Sub-menus
2932
# split AddCitation --> enable_citation_file and enable_cffconvert
3033
SelectCitation:
31-
when: "{{ 'select_citation_flag' in SelectPublishReleaseFeatures }}"
34+
when: "{{ 'SelectCitation_flag' in SelectPublishReleaseFeatures }}"
3235
type: yaml
3336
default: |-
3437
{% if template_profile == 'recommended' %}
@@ -40,8 +43,20 @@ SelectCitation:
4043
multiselect: true
4144
choices:
4245
CITATION.cff file (NOT_IMPLEMENTED):
43-
value: enable_citation_file
46+
value: AddCitationFile_flag
4447
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
4548
cffconvert GitHub Action (NOT_IMPLEMENTED):
46-
value: enable_cffconvert
49+
value: AddCFFConvert_flag
4750
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
51+
52+
53+
# computed features
54+
AddChangeLog:
55+
type: bool
56+
default: "{{ 'AddChangeLog_flag' in SelectPublishReleaseFeatures }}"
57+
when: false
58+
59+
AddZenodo:
60+
type: bool
61+
default: "{{ 'AddZenodo_flag' in SelectPublishReleaseFeatures }}"
62+
when: false

0 commit comments

Comments
 (0)