File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,20 @@ _message_after_copy: |
4040 $ just list-todos
4141
4242# Questions:
43- github_user :
43+ package_github_repo :
4444 type : str
45- help : " What is the GitHub username of the person or organisation who owns the package?"
45+ help : " What is or will be the GitHub repository spec for the project?"
46+ placeholder : " user/repo"
4647 validator : |
47- {% if github_user and not (github_user | regex_search('^[\w.-]+$')) %}
48- Must contain only alphanumeric characters and `_`, `-`, or `.`.
48+ {% if package_github_repo and not (package_github_repo | regex_search('^[\w.-]+\/ [\w.-]+$')) %}
49+ Must be in the format `user/repo` and contain only alphanumeric characters and `_`, `-`, or `.`.
4950 {% endif %}
5051
52+ github_user :
53+ type : str
54+ default : " {{ package_github_repo.split('/')[0] if package_github_repo else '' }}"
55+ when : false
56+
5157package_name :
5258 type : str
5359 help : " What is the name of the package?"
@@ -62,11 +68,6 @@ package_name_snake_case:
6268 default : " {{package_name | replace('-', '_') | replace('.', '_')}}"
6369 when : false
6470
65- package_github_repo :
66- type : str
67- default : " {{ github_user ~ '/' ~ package_name }}"
68- when : false
69-
7071is_seedcase_project :
7172 type : bool
7273 help : " Is this package part of the Seedcase Project?"
You can’t perform that action at this time.
0 commit comments