Skip to content

Commit 8bbda7c

Browse files
committed
implement the logic for citation, add computed values and flags
1 parent 4bf594a commit 8bbda7c

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

copier/questions/features_publish_release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,28 @@ SelectCitation:
3939
{%- else -%}
4040
[]
4141
{%- endif %}
42-
help: Select GitHub Action workflows
42+
help: Select citation features
4343
multiselect: true
4444
choices:
45-
CITATION.cff file (NOT_IMPLEMENTED):
45+
CITATION.cff file:
4646
value: AddCitationFile_flag
4747
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
48-
cffconvert GitHub Action (NOT_IMPLEMENTED):
48+
cffconvert GitHub Action (to validate CITATION.cff files):
4949
value: AddCFFConvert_flag
5050
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
5151

5252

5353
# computed features
54+
AddCitation:
55+
type: bool
56+
default: "{{ 'AddCitationFile_flag' in SelectCitation }}"
57+
when: false
58+
59+
AddCFFConvert:
60+
type: bool
61+
default: "{{ 'AddCFFConvert_flag' in SelectCitation }}"
62+
when: false
63+
5464
AddChangeLog:
5565
type: bool
5666
default: "{{ 'AddChangeLog_flag' in SelectPublishReleaseFeatures }}"

template/.github/workflows/{% if AddCitation %}cffconvert.yml{% endif %} renamed to template/.github/workflows/{% if AddCFFConvert %}cffconvert.yml{% endif %}

File renamed without changes.

0 commit comments

Comments
 (0)