Skip to content

Commit

Permalink
Adds notes printout about CODECOV_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
jevandezande committed Apr 30, 2024
1 parent 713d285 commit 9776b66
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,18 @@ def github_setup(privacy: str) -> None:
call(f"gh repo create {{cookiecutter.package_name}} --{privacy}")


def notes() -> None:
"""Print notes for the user."""
print(
"""
If using GitHub, generate a CODECOV_TOKEN at:
https://app.codecov.io/gh/{{cookiecutter.github_username}}/{{cookiecutter.package_name}}/settings
and add it to the GitHub repository secrets as CODECOV_TOKEN at:
https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.package_name}}/settings/secrets/actions
"""
)


SUCCESS = "\x1b[1;32m"
TERMINATOR = "\x1b[0m"

Expand All @@ -210,6 +222,8 @@ def main() -> None:
if "{{cookiecutter.github_setup}}" != "None": # type: ignore
github_setup("{{cookiecutter.github_setup}}")

notes()

print(f"{SUCCESS}Project successfully initialized{TERMINATOR}")


Expand Down

0 comments on commit 9776b66

Please sign in to comment.