You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: copier.yaml
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ _tasks:
9
9
# Message to show after generating or regenerating the project successfully
10
10
_message_after_copy: |
11
11
12
-
Your project "{{ package_abbrev }}" has been created successfully!
12
+
Your project "{{ github_repo }}" has been created successfully!
13
13
14
14
See the [guide](https://template-data-package.seedcase-project.org/docs/guide) for more detail
15
15
on the next steps. Briefly:
@@ -49,14 +49,14 @@ _message_after_copy: |
49
49
```
50
50
51
51
# Questions:
52
-
package_github_repo:
52
+
github_user:
53
53
type: str
54
-
help: "What is the GitHub repository spec for the package?"
55
-
placeholder: "user/repo"
56
-
validator: |
57
-
{% if package_github_repo and not (package_github_repo | regex_search('^[\w.-]+\/[\w.-]+$')) %}
58
-
Must be in the format `user/repo` and contain only alphanumeric characters and `_`, `-`, or `.`.
59
-
{% endif %}
54
+
help: "What is the name of the GitHub user or organisation where the repository will be or is stored?"
55
+
56
+
github_repo:
57
+
type: str
58
+
help: "What is the name of the GitHub repository where the data package will be or is stored? We strongly recommend using the default given."
59
+
default: "{{ _folder_name }}"
60
60
61
61
author_given_name:
62
62
type: str
@@ -70,16 +70,10 @@ author_email:
70
70
type: str
71
71
help: "What is your email address?"
72
72
73
-
package_abbrev:
74
-
type: str
75
-
help: "What is the abbreviated name of the package? This could be the name of your GitHub repository and should be a short, lowercase name without spaces or special characters. For example, 'template-data-package'."
76
-
default: "{{ _copier_conf.dst_path | basename }}"
77
-
78
73
review_team:
79
74
type: str
80
75
help: What GitHub team is responsible for reviewing pull requests?
81
-
default: >-
82
-
{{ "@%s/developers" % package_github_repo.split('/')[0] if package_github_repo else "" }}
76
+
default: "{{ '@%s/developers' % github_user if github_user else '' }}"
0 commit comments