diff options
-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 |