From 047a3572d8aa3d2478ca5f033e57a0077301f17e Mon Sep 17 00:00:00 2001 From: Jose Corella Date: Wed, 12 Feb 2025 13:42:29 -0800 Subject: [PATCH 1/3] chore: update change log rules --- .releaserc.cjs | 206 +++++++++++++++++++++++++++++++++++++++++++++---- Makefile | 2 +- 2 files changed, 191 insertions(+), 17 deletions(-) diff --git a/.releaserc.cjs b/.releaserc.cjs index e2be963bf..9ac179721 100644 --- a/.releaserc.cjs +++ b/.releaserc.cjs @@ -54,10 +54,10 @@ module.exports = { { type: "chore", section: "Maintenance" }, { type: "docs", section: "Maintenance" }, { type: "revert", section: "Fixes" }, - { type: "style", hidden: true }, - { type: "refactor", hidden: true }, - { type: "perf", hidden: true }, - { type: "test", hidden: true }, + { type: "style", section: "Miscellaneous" }, + { type: "refactor", section: "Miscellaneous" }, + { type: "perf", section: "Miscellaneous" }, + { type: "test", section: "Miscellaneous" }, ], }, releaseRules: [ @@ -72,20 +72,194 @@ module.exports = { "@semantic-release/release-notes-generator", { preset: "conventionalcommits", - parserOpts: { - noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES"], - }, presetConfig: { types: [ - { type: "feat", section: "Features" }, - { type: "fix", section: "Fixes" }, - { type: "chore", section: "Maintenance" }, - { type: "docs", section: "Maintenance" }, - { type: "revert", section: "Fixes" }, - { type: "style", hidden: true }, - { type: "refactor", hidden: true }, - { type: "perf", hidden: true }, - { type: "test", hidden: true }, + { + type: "feat", + scope: "dafny", + section: "Features -- All Languages", + hidden: false, + }, + { + type: "feat", + scope: "java", + section: "Features -- Java", + hidden: false, + }, + { + type: "feat", + scope: "dotnet", + section: "Features -- DotNet", + hidden: false, + }, + { + type: "feat", + scope: "python", + section: "Features -- Python", + hidden: false, + }, + { + type: "feat", + scope: "go", + section: "Features -- Go", + hidden: false, + }, + { + type: "feat", + scope: "rust", + section: "Features -- Rust", + hidden: false, + }, + + { + type: "fix", + scope: "dafny", + section: "Fixes -- All Languages", + hidden: false, + }, + { + type: "fix", + scope: "java", + section: "Fixes -- Java", + hidden: false, + }, + { + type: "fix", + scope: "dotnet", + section: "Fixes -- DotNet", + hidden: false, + }, + { + type: "fix", + scope: "python", + section: "Fixes -- Python", + hidden: false, + }, + { type: "fix", scope: "go", section: "Fixes -- Go", hidden: false }, + { + type: "fix", + scope: "rust", + section: "Fixes -- Rust", + hidden: false, + }, + + { + type: "chore", + scope: "dafny", + section: "Maintenance -- All Languages", + hidden: false, + }, + { + type: "chore", + scope: "java", + section: "Maintenance -- Java", + hidden: false, + }, + { + type: "chore", + scope: "dotnet", + section: "Maintenance -- DotNet", + hidden: false, + }, + { + type: "chore", + scope: "python", + section: "Maintenance -- Python", + hidden: false, + }, + { + type: "chore", + scope: "go", + section: "Maintenance -- Go", + hidden: false, + }, + { + type: "chore", + scope: "rust", + section: "Maintenance -- Rust", + hidden: false, + }, + { + type: "chore", + section: "Miscellaneous", + hidden: false, + }, + { + type: "docs", + scope: "dafny", + section: "Maintenance -- All Languages", + hidden: false, + }, + { + type: "docs", + scope: "java", + section: "Maintenance -- Java", + hidden: false, + }, + { + type: "docs", + scope: "dotnet", + section: "Maintenance -- DotNet", + hidden: false, + }, + { + type: "docs", + scope: "python", + section: "Maintenance -- Python", + hidden: false, + }, + { + type: "docs", + scope: "go", + section: "Maintenance -- Go", + hidden: false, + }, + { + type: "docs", + scope: "rust", + section: "Maintenance -- Rust", + hidden: false, + }, + { + type: "revert", + scope: "dafny", + section: "Fixes -- All Languages", + hidden: false, + }, + { + type: "revert", + scope: "java", + section: "Fixes -- Java", + hidden: false, + }, + { + type: "revert", + scope: "dotnet", + section: "Fixes -- DotNet", + hidden: false, + }, + { + type: "revert", + scope: "python", + section: "Fixes -- Python", + hidden: false, + }, + { + type: "revert", + scope: "go", + section: "Fixes -- Go", + hidden: false, + }, + { + type: "revert", + scope: "rust", + section: "Fixes -- Rust", + hidden: false, + }, + { type: "style", section: "Miscellaneous", hidden: false }, + { type: "refactor", section: "Miscellaneous", hidden: false }, + { type: "perf", section: "Miscellaneous", hidden: false }, + { type: "test", section: "Miscellaneous", hidden: false }, ], }, }, diff --git a/Makefile b/Makefile index c1806faab..2d9428ee2 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ generate_properties_file: "; setup_semantic_release: - npm i --no-save semantic-release @semantic-release/changelog semantic-release-replace-plugin conventional-changelog-conventionalcommits @semantic-release/git + npm i --no-save semantic-release @semantic-release/changelog semantic-release-replace-plugin conventional-changelog-conventionalcommits @semantic-release/git @semantic-release/exec run_semantic_release: npx semantic-release --no-ci From db03020862829a7ba71ac84764dd71d6e07928b8 Mon Sep 17 00:00:00 2001 From: Jose Corella Date: Wed, 12 Feb 2025 13:44:39 -0800 Subject: [PATCH 2/3] chore(ci): update gihub workflows --- .releaserc.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.releaserc.cjs b/.releaserc.cjs index 9ac179721..b64e7ce87 100644 --- a/.releaserc.cjs +++ b/.releaserc.cjs @@ -36,7 +36,7 @@ const Runtimes = { * @type {import('semantic-release').GlobalConfig} */ module.exports = { - branches: ["main"], + branches: ["main", "jocorell/update-releaserc"], repositoryUrl: "git@github.com:aws/aws-database-encryption-sdk-dynamodb.git", plugins: [ // Check the commits since the last release From 3cfa4457522b52660731efb44c772ba7be7319aa Mon Sep 17 00:00:00 2001 From: Jose Corella Date: Wed, 12 Feb 2025 13:52:54 -0800 Subject: [PATCH 3/3] m --- .releaserc.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.releaserc.cjs b/.releaserc.cjs index b64e7ce87..9ac179721 100644 --- a/.releaserc.cjs +++ b/.releaserc.cjs @@ -36,7 +36,7 @@ const Runtimes = { * @type {import('semantic-release').GlobalConfig} */ module.exports = { - branches: ["main", "jocorell/update-releaserc"], + branches: ["main"], repositoryUrl: "git@github.com:aws/aws-database-encryption-sdk-dynamodb.git", plugins: [ // Check the commits since the last release