From c05cd0a26e435dd7ea3038b47708ae53ffc2efbc Mon Sep 17 00:00:00 2001 From: martonvago Date: Fri, 25 Jul 2025 15:28:29 +0100 Subject: [PATCH 1/3] feat: :sparkles: add after copy message --- copier.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/copier.yaml b/copier.yaml index b4d44b6..7609219 100644 --- a/copier.yaml +++ b/copier.yaml @@ -14,6 +14,39 @@ _tasks: - command: "git commit -m 'chore: :tada: setup a new data package from the template'" when: "{{ _copier_operation == 'copy' }}" +# Message to show after generating or regenerating the project successfully +_message_after_copy: | + + Your project "{{ package_abbrev }}" has been created successfully! + + Next steps: + + 1. Change directory to the project root: + + $ cd {{ _copier_conf.dst_path }} + + 2. Install the pre-commit hooks: + + $ just install-precommit + + 3. Install [`spaid`](https://github.com/seedcase-project/spaid) and run these setup steps: + + $ spaid_gh_create_repo_from_local -h + $ spaid_gh_set_repo_settings -h + $ spaid_gh_ruleset_basic_protect_main -h + + + 4. Configure GitHub following this + [guide](https://guidebook.seedcase-project.org/operations/security#using-github-apps-to-generate-tokens): + + - Install the [auto-release-token](https://github.com/apps/auto-release-token) GitHub App + - Create an `UPDATE_VERSION_TOKEN` secret + - Create an `UPDATE_VERSION_APP_ID` variable + + 5. List and action all TODO items in the repository: + + $ just list-todos + # Questions: package_github_repo: type: str From b0b2386df3680a3bd31e858f92816b8a0c5380c8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 25 Jul 2025 14:37:24 +0000 Subject: [PATCH 2/3] chore(pre-commit): :pencil2: automatic fixes --- copier.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/copier.yaml b/copier.yaml index 7609219..ea34e76 100644 --- a/copier.yaml +++ b/copier.yaml @@ -26,11 +26,11 @@ _message_after_copy: | $ cd {{ _copier_conf.dst_path }} 2. Install the pre-commit hooks: - + $ just install-precommit 3. Install [`spaid`](https://github.com/seedcase-project/spaid) and run these setup steps: - + $ spaid_gh_create_repo_from_local -h $ spaid_gh_set_repo_settings -h $ spaid_gh_ruleset_basic_protect_main -h @@ -44,7 +44,7 @@ _message_after_copy: | - Create an `UPDATE_VERSION_APP_ID` variable 5. List and action all TODO items in the repository: - + $ just list-todos # Questions: From 5ae23e3a6d55bc9792051e4bfdd6526d03687bcc Mon Sep 17 00:00:00 2001 From: martonvago <57952344+martonvago@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:11:55 +0100 Subject: [PATCH 3/3] refactor: :recycle: apply suggestions from code review Co-authored-by: Luke W. Johnston --- copier.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/copier.yaml b/copier.yaml index 1c34f95..b60496f 100644 --- a/copier.yaml +++ b/copier.yaml @@ -27,7 +27,6 @@ _message_after_copy: | $ spaid_gh_set_repo_settings -h $ spaid_gh_ruleset_basic_protect_main -h - 4. Configure GitHub following this [guide](https://guidebook.seedcase-project.org/operations/security#using-github-apps-to-generate-tokens): @@ -35,7 +34,7 @@ _message_after_copy: | - Create an `UPDATE_VERSION_TOKEN` secret - Create an `UPDATE_VERSION_APP_ID` variable - 5. List and action all TODO items in the repository: + 5. List and complete all TODO items in the repository: $ just list-todos