Skip to content

Commit fcbfa65

Browse files
committed
add the profile selection and GitHubAction question
1 parent 3eafb08 commit fcbfa65

3 files changed

Lines changed: 22 additions & 4 deletions

File tree

copier.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ code_of_conduct_email:
4848
type: str
4949
default: "{{ email }}"
5050

51-
_subdirectory: template
52-
51+
# calculated fields
5352
repository:
5453
default: git@github.com:{{ github_organization }}/{{ package_name }}
5554
when: false
@@ -59,11 +58,30 @@ repository_url:
5958
when: false
6059

6160

61+
# profile selection
62+
template_profile:
63+
type: str
64+
default: recommended
65+
help: Optional questions (You can use our defaults, or the bare minimum, or decide everything)
66+
choices:
67+
Recommended (our defaults for research software): "recommended"
68+
Minimum (Answer no to any addition): "minimum"
69+
Ask me (Ask all questions): "ask"
70+
71+
6272
# Optional questions
73+
AddGitHubActions:
74+
when: "{{ AnswerStrategy == 'ask' }}"
75+
type: bool
76+
default: "{{ AnswerStrategy != 'minimum' }}"
77+
help: GitHub actions to test build, documentation
6378

6479

65-
# user messages
80+
# internal fields
81+
_subdirectory: template
6682

83+
84+
# user messages
6785
_message_before_copy: |
6886
Thanks for generating a project using our template.
6987
@@ -77,7 +95,7 @@ _message_after_copy: |
7795
7896
1. Change directory to the project root:
7997
80-
$ cd {{ _copier_conf.dst_path }}
98+
$ cd {{ _copier_conf.dst_path }}
8199
82100
2. Read next_steps.md which contains information on next steps.
83101

template/.github/workflows/build.yml renamed to template/.github/workflows/{% if AddGitHubActions %}build{% endif %}.yml

File renamed without changes.

template/.github/workflows/documentation.yml renamed to template/.github/workflows/{% if AddGitHubActions %}documentation{% endif %}.yml

File renamed without changes.

0 commit comments

Comments
 (0)