Skip to content

Commit 4307300

Browse files
authored
fix: 🐛 github_repo (via _folder_name) doesn't work using update (#197)
# Description So this needs to be asked as a question, not using `when: false`. This PR needs a quick review. ## Checklist - [x] Ran `just run-all`
1 parent 8b66b47 commit 4307300

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

copier.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ github_user:
6060
help: "What is the name of the GitHub user or organisation where the repository will be or is stored?"
6161
default: "{{ 'seedcase-project' if is_seedcase_project else '' }}"
6262

63+
github_repo:
64+
type: str
65+
help: "What is the name of the GitHub repository where the website will be or is stored? We strongly recommend using the default given."
66+
default: "{{ _folder_name }}"
67+
6368
hosting_provider:
6469
type: str
6570
help: "What hosting provider will you use for the documentation website?"
@@ -93,12 +98,6 @@ github_board_number:
9398
{% endif %}
9499
95100
# Configurations not asked
96-
97-
github_repo:
98-
type: str
99-
default: "{{ _copier_conf.dst_path | realpath | basename }}"
100-
when: false
101-
102101
github_repo_snake_case:
103102
type: str
104103
default: "{{github_repo | replace('-', '_') | replace('.', '_')}}"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
{{ dict(_copier_answers, github_repo=github_repo, copyright_year=copyright_year) | to_nice_yaml -}}
2+
{{ dict(_copier_answers, copyright_year=copyright_year) | to_nice_yaml -}}

0 commit comments

Comments
 (0)