Skip to content

Commit 8664d0e

Browse files
committed
always ask package details
1 parent 953db45 commit 8664d0e

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
---
22
# package details
3-
AddPackageDetails:
4-
type: bool
5-
default: yes
6-
help: |-
7-
If you are planning to publish the package it is recommended to provide more details.
8-
Do you want to provide extra details for the package?
9-
when: "{{ template_profile != 'minimum'}}"
3+
# AddPackageDetails:
4+
# type: bool
5+
# default: yes
6+
# help: |-
7+
# If you are planning to publish the package it is recommended to provide more details.
8+
# Do you want to provide extra details for the package?
9+
# when: false
1010
package_short_description:
1111
type: str
1212
placeholder: Short description
1313
help: Short description of package
14-
when: "{{ template_profile != 'minimum' and AddPackageDetails }}"
1514
validator: >-
1615
{% if not package_short_description %}
1716
Package description cannot be empty
@@ -20,17 +19,14 @@ keyword1:
2019
type: str
2120
placeholder: keyword1
2221
help: Add keyword1
23-
when: "{{ template_profile != 'minimum' and AddPackageDetails }}"
2422
keyword2:
2523
type: str
2624
placeholder: keyword2
2725
help: Add keyword2
28-
when: "{{ template_profile != 'minimum' and AddPackageDetails }}"
2926
github_organization:
3027
type: str
3128
placeholder: "<my-github-organization>"
3229
help: Enter the name of your GitHub username or organization
33-
when: "{{ template_profile != 'minimum' and AddPackageDetails }}"
3430
validator: >-
3531
{% if not github_organization %}
3632
This field cannot be empty
@@ -39,16 +35,14 @@ email:
3935
type: str
4036
placeholder: yourname@esciencecenter.nl
4137
help: What is your email address?
42-
when: "{{ template_profile != 'minimum' and AddPackageDetails }}"
4338
validator: >-
4439
{% if not (email | regex_search('([A-Za-z0-9]+[.-_])*[A-Za-z0-9]+@[A-Za-z0-9-]+(\.[A-Z|a-z]{2,})+')) %}
4540
Please enter a valid email address
4641
{% endif %}
4742
code_of_conduct_email:
4843
type: str
49-
default: "{{ email }}"
44+
default: "{{ email }}"
5045
help: What is the email address for code of conduct?
51-
when: "{{ template_profile != 'minimum' and AddPackageDetails }}"
5246
validator: >-
5347
{% if not (code_of_conduct_email | regex_search('([A-Za-z0-9]+[.-_])*[A-Za-z0-9]+@[A-Za-z0-9-]+(\.[A-Z|a-z]{2,})+')) %}
5448
Please enter a valid email address
@@ -57,13 +51,11 @@ copyright_holder:
5751
type: str
5852
placeholder: Netherlands eScience Center
5953
help: Who is the copyright holder?
60-
when: "{{ template_profile != 'minimum' and AddPackageDetails }}"
6154

6255
# calculated fields for GitHub
6356
repository:
6457
default: git@github.com:{{ github_organization }}/{{ package_name }}
6558
when: false
66-
6759
repository_url:
6860
default: https://github.com/{{ github_organization }}/{{ package_name }}
6961
when: false

0 commit comments

Comments
 (0)