about summary refs log tree commit diff stats
path: root/templates/shell/cog.toml
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 23:31:08 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-01 00:00:03 +0200
commit76932b24718c6b4c0d7bdffe8f776a6105ea3745 (patch)
treefa53fd6cc1a5a0be43693de2da69f1c0aebfd223 /templates/shell/cog.toml
parentrefactor(shell): Move to the new `templates` directory (diff)
downloadflake-templates-76932b24718c6b4c0d7bdffe8f776a6105ea3745.tar.gz
flake-templates-76932b24718c6b4c0d7bdffe8f776a6105ea3745.zip
feat(shell): Update to my new SOTA
Diffstat (limited to 'templates/shell/cog.toml')
-rw-r--r--templates/shell/cog.toml24
1 files changed, 11 insertions, 13 deletions
diff --git a/templates/shell/cog.toml b/templates/shell/cog.toml
index 2b049c7..ff2c110 100644
--- a/templates/shell/cog.toml
+++ b/templates/shell/cog.toml
@@ -1,26 +1,24 @@
-from_latest_tag = false
 tag_prefix = "v"
+branch_whitelist = ["main", "prime"]
 ignore_merge_commits = false
-pre_package_bump_hooks = []
-post_package_bump_hooks = []
-
-branch_whitelist = ["prime"]
 
 pre_bump_hooks = [
-  "nix build",                                                          # verify the project builds
-  "flake_version_update --version v{{version}} --input-file flake.nix",
+  "nix flake check",                                                    # verify the project builds
+  "./scripts/renew_copyright_header.sh",                                # update the license header in each file
+  "flake_version_update --version v{{version}} --input-file flake.nix", # update the version in the flake.nix file
+  "nix fmt",                                                            # format
 ]
 post_bump_hooks = [
   "git push",
   "git push origin v{{version}}", # push the new tag to origin
 ]
 
-[commit_types]
+[bump_profiles]
 
 [changelog]
 path = "NEWS.md"
-authors = []
-
-[bump_profiles]
-
-[packages]
+template = "remote"
+remote = "TODO"
+repository = "TODO"
+owner = "TODO"
+authors = [{ signature = "Benedikt Peetz", username = "bpeetz" }]