Skip to content

Commit 8329423

Browse files
committed
Updated post_gen_project hook
create_github_repo option now respected.
1 parent 029f0ad commit 8329423

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hooks/post_gen_project.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ def post_generation_tasks() -> int:
9494
Task("Initial Commit", "git commit -m 'initial commit'", required=True),
9595
]
9696

97-
if "{{ cookiecutter.create_github_repo }}":
97+
create_github_repo = "{{ cookiecutter.create_github_repo }}"
98+
99+
if create_github_repo == "True":
98100
create_repo = Task(
99-
"Create Upstream Repo",
101+
f"Create Upstream Repo {create_github_repo}",
100102
"gh repo create {{ cookiecutter.package_name }} --public"
101103
" --push --source=. --remote=upstream",
102104
required=False,

0 commit comments

Comments
 (0)