diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-09-30 17:31:16 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-09-30 17:31:16 +0200 |
commit | cfa3e6ce5d8bce3ead72a2dfc81875bbd896d5f9 (patch) | |
tree | 4b34c5649574f30dbefd14473bcc1505d86e7438 | |
parent | build(instantiate_templates.sh): Actually also copy directory symlinks (diff) | |
download | flake-templates-cfa3e6ce5d8bce3ead72a2dfc81875bbd896d5f9.tar.gz flake-templates-cfa3e6ce5d8bce3ead72a2dfc81875bbd896d5f9.zip |
fix(templates/{awk,c,latex,shell}): Use one shared `cog.toml`
-rw-r--r-- | common/cog.toml | 24 | ||||
l---------[-rw-r--r--] | templates/awk/cog.toml | 25 | ||||
l---------[-rw-r--r--] | templates/c/cog.toml | 25 | ||||
l---------[-rw-r--r--] | templates/latex/academia/cog.toml | 25 | ||||
l---------[-rw-r--r--] | templates/latex/letter/cog.toml | 25 | ||||
l---------[-rw-r--r--] | templates/shell/cog.toml | 25 |
6 files changed, 29 insertions, 120 deletions
diff --git a/common/cog.toml b/common/cog.toml new file mode 100644 index 0000000..ebb3a5d --- /dev/null +++ b/common/cog.toml @@ -0,0 +1,24 @@ +tag_prefix = "v" +branch_whitelist = ["main", "prime"] +ignore_merge_commits = false + +pre_bump_hooks = [ + "reuse lint", # Check licensing status. + "nix flake check", # Verify the project builds. + "flake_version_update --version v{{version}} --input-file flake.nix", # Bump 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 +] + +[bump_profiles] + +[changelog] +path = "NEWS.md" +template = "remote" +remote = "%INIT_REMOTE" +repository = "%INIT_REPOSITORY" +owner = "%INIT_OWNER" +authors = [{ signature = "%INIT_AUTHOR_NAME", username = "%INIT_OWNER" }] diff --git a/templates/awk/cog.toml b/templates/awk/cog.toml index ea1b5e3..a71c6d3 100644..120000 --- a/templates/awk/cog.toml +++ b/templates/awk/cog.toml @@ -1,24 +1 @@ -tag_prefix = "v" -branch_whitelist = ["main", "prime"] -ignore_merge_commits = false - -pre_bump_hooks = [ - "nix flake check", # verify the project builds - "./scripts/renew_copyright_header.sh", # update the license header in each file - "nix fmt", # format - "flake_version_update --version v{{version}} --input-file flake.nix", # update the version in the flake.nix file -] -post_bump_hooks = [ - "git push", - "git push origin v{{version}}", # push the new tag to origin -] - -[bump_profiles] - -[changelog] -path = "NEWS.md" -template = "remote" -remote = "%INIT_REMOTE" -repository = "%INIT_REPOSITORY" -owner = "%INIT_OWNER" -authors = [{ signature = "%INIT_AUTHOR_NAME", username = "%INIT_OWNER" }] +../../common/cog.toml \ No newline at end of file diff --git a/templates/c/cog.toml b/templates/c/cog.toml index ccca764..a71c6d3 100644..120000 --- a/templates/c/cog.toml +++ b/templates/c/cog.toml @@ -1,24 +1 @@ -tag_prefix = "v" -branch_whitelist = ["main", "prime"] -ignore_merge_commits = false - -pre_bump_hooks = [ - "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 -] - -[bump_profiles] - -[changelog] -path = "NEWS.md" -template = "remote" -remote = "%INIT_REMOTE" -repository = "%INIT_REPOSITORY" -owner = "%INIT_OWNER" -authors = [{ signature = "%INIT_AUTHOR_NAME", username = "%INIT_OWNER" }] +../../common/cog.toml \ No newline at end of file diff --git a/templates/latex/academia/cog.toml b/templates/latex/academia/cog.toml index ccca764..a5be520 100644..120000 --- a/templates/latex/academia/cog.toml +++ b/templates/latex/academia/cog.toml @@ -1,24 +1 @@ -tag_prefix = "v" -branch_whitelist = ["main", "prime"] -ignore_merge_commits = false - -pre_bump_hooks = [ - "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 -] - -[bump_profiles] - -[changelog] -path = "NEWS.md" -template = "remote" -remote = "%INIT_REMOTE" -repository = "%INIT_REPOSITORY" -owner = "%INIT_OWNER" -authors = [{ signature = "%INIT_AUTHOR_NAME", username = "%INIT_OWNER" }] +../../../common/cog.toml \ No newline at end of file diff --git a/templates/latex/letter/cog.toml b/templates/latex/letter/cog.toml index ccca764..a5be520 100644..120000 --- a/templates/latex/letter/cog.toml +++ b/templates/latex/letter/cog.toml @@ -1,24 +1 @@ -tag_prefix = "v" -branch_whitelist = ["main", "prime"] -ignore_merge_commits = false - -pre_bump_hooks = [ - "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 -] - -[bump_profiles] - -[changelog] -path = "NEWS.md" -template = "remote" -remote = "%INIT_REMOTE" -repository = "%INIT_REPOSITORY" -owner = "%INIT_OWNER" -authors = [{ signature = "%INIT_AUTHOR_NAME", username = "%INIT_OWNER" }] +../../../common/cog.toml \ No newline at end of file diff --git a/templates/shell/cog.toml b/templates/shell/cog.toml index ccca764..a71c6d3 100644..120000 --- a/templates/shell/cog.toml +++ b/templates/shell/cog.toml @@ -1,24 +1 @@ -tag_prefix = "v" -branch_whitelist = ["main", "prime"] -ignore_merge_commits = false - -pre_bump_hooks = [ - "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 -] - -[bump_profiles] - -[changelog] -path = "NEWS.md" -template = "remote" -remote = "%INIT_REMOTE" -repository = "%INIT_REPOSITORY" -owner = "%INIT_OWNER" -authors = [{ signature = "%INIT_AUTHOR_NAME", username = "%INIT_OWNER" }] +../../common/cog.toml \ No newline at end of file |