@@ -56,14 +56,20 @@ const Runtimes = {
5656module . exports = {
5757 branches : [ "main" ] ,
5858 repositoryUrl : "git@github.com:aws/aws-database-encryption-sdk-dynamodb.git" ,
59+ tagFormat : "v${version}-java" ,
5960 plugins : [
6061 // Check the commits since the last release
6162 [
6263 "@semantic-release/commit-analyzer" ,
6364 {
6465 preset : "conventionalcommits" ,
6566 parserOpts : {
66- noteKeywords : [ "BREAKING-CHANGE" , "BREAKING-CHANGES" ] ,
67+ noteKeywords : [
68+ "JAVA-BREAKING-CHANGE" ,
69+ "JAVA-BREAKING-CHANGES" ,
70+ "JAVA BREAKING CHANGE" ,
71+ "JAVA BREAKING CHANGES" ,
72+ ] ,
6773 } ,
6874 presetConfig : {
6975 types : [
@@ -79,9 +85,14 @@ module.exports = {
7985 ] ,
8086 } ,
8187 releaseRules : [
82- { type : "docs" , release : "patch" } ,
83- { type : "revert" , release : "patch" } ,
84- { type : "chore" , release : "patch" } ,
88+ // go is in main but not in prod. Mentioning go as we do make PR scoping Go in this repo
89+ // python is not in main and not in prod. Mentioning python for defensive coding.
90+ { scope : "python" , release : false } ,
91+ { scope : "dotnet" , release : false } ,
92+ { scope : ".net" , release : false } ,
93+ { scope : "net" , release : false } ,
94+ { scope : "go" , release : false } ,
95+ { scope : "rust" , release : false } ,
8596 ] ,
8697 } ,
8798 ] ,
@@ -91,7 +102,12 @@ module.exports = {
91102 {
92103 preset : "conventionalcommits" ,
93104 parserOpts : {
94- noteKeywords : [ "BREAKING-CHANGE" , "BREAKING-CHANGES" ] ,
105+ noteKeywords : [
106+ "JAVA-BREAKING-CHANGE" ,
107+ "JAVA-BREAKING-CHANGES" ,
108+ "JAVA BREAKING CHANGE" ,
109+ "JAVA BREAKING CHANGES" ,
110+ ] ,
95111 } ,
96112 presetConfig : {
97113 types : [
@@ -107,13 +123,12 @@ module.exports = {
107123 section : "Features -- Java" ,
108124 hidden : false ,
109125 } ,
110- {
111- type : "feat" ,
112- scope : "rust" ,
113- section : "Features -- Rust" ,
114- hidden : false ,
115- } ,
116-
126+ { type : "feat" , scope : ".net" , hidden : true } ,
127+ { type : "feat" , scope : "net" , hidden : true } ,
128+ { type : "feat" , scope : "dotnet" , hidden : true } ,
129+ { type : "feat" , scope : "python" , hidden : true } ,
130+ { type : "feat" , scope : "go" , hidden : true } ,
131+ { type : "feat" , scope : "rust" , hidden : true } ,
117132 {
118133 type : "fix" ,
119134 scope : "dafny" ,
@@ -126,13 +141,12 @@ module.exports = {
126141 section : "Fixes -- Java" ,
127142 hidden : false ,
128143 } ,
129- {
130- type : "fix" ,
131- scope : "rust" ,
132- section : "Fixes -- Rust" ,
133- hidden : false ,
134- } ,
135-
144+ { type : "fix" , scope : ".net" , hidden : true } ,
145+ { type : "fix" , scope : "net" , hidden : true } ,
146+ { type : "fix" , scope : "dotnet" , hidden : true } ,
147+ { type : "fix" , scope : "python" , hidden : true } ,
148+ { type : "fix" , scope : "go" , hidden : true } ,
149+ { type : "fix" , scope : "rust" , hidden : true } ,
136150 {
137151 type : "chore" ,
138152 scope : "dafny" ,
@@ -145,12 +159,12 @@ module.exports = {
145159 section : "Maintenance -- Java" ,
146160 hidden : false ,
147161 } ,
148- {
149- type : "chore" ,
150- scope : "rust" ,
151- section : "Maintenance -- Rust" ,
152- hidden : false ,
153- } ,
162+ { type : "chore" , scope : ".net" , hidden : true } ,
163+ { type : "chore" , scope : "net" , hidden : true } ,
164+ { type : "chore" , scope : "dotnet" , hidden : true } ,
165+ { type : "chore" , scope : "python" , hidden : true } ,
166+ { type : "chore" , scope : "go" , hidden : true } ,
167+ { type : "chore" , scope : "rust" , hidden : true } ,
154168 {
155169 type : "chore" ,
156170 section : "Miscellaneous" ,
@@ -168,12 +182,11 @@ module.exports = {
168182 section : "Maintenance -- Java" ,
169183 hidden : false ,
170184 } ,
171- {
172- type : "docs" ,
173- scope : "rust" ,
174- section : "Maintenance -- Rust" ,
175- hidden : false ,
176- } ,
185+ { type : "docs" , scope : ".net" , hidden : true } ,
186+ { type : "docs" , scope : "dotnet" , hidden : true } ,
187+ { type : "docs" , scope : "python" , hidden : true } ,
188+ { type : "docs" , scope : "go" , hidden : true } ,
189+ { type : "docs" , scope : "rust" , hidden : true } ,
177190 {
178191 type : "revert" ,
179192 scope : "dafny" ,
@@ -186,10 +199,50 @@ module.exports = {
186199 section : "Fixes -- Java" ,
187200 hidden : false ,
188201 } ,
202+ { type : "revert" , scope : ".net" , hidden : true } ,
203+ { type : "revert" , scope : "dotnet" , hidden : true } ,
204+ { type : "revert" , scope : "python" , hidden : true } ,
205+ { type : "revert" , scope : "go" , hidden : true } ,
206+ { type : "revert" , scope : "rust" , hidden : true } ,
207+ {
208+ type : "feat" ,
209+ section : "Features -- All Languages" ,
210+ hidden : false ,
211+ } ,
212+ { type : "fix" , section : "Fixes -- All Languages" , hidden : false } ,
213+ {
214+ type : "chore" ,
215+ section : "Maintenance -- All Languages" ,
216+ hidden : false ,
217+ } ,
218+ {
219+ type : "docs" ,
220+ section : "Maintenance -- All Languages" ,
221+ hidden : false ,
222+ } ,
189223 {
190224 type : "revert" ,
191- scope : "rust" ,
192- section : "Fixes -- Rust" ,
225+ section : "Fixes -- All Languages" ,
226+ hidden : false ,
227+ } ,
228+ {
229+ type : "style" ,
230+ section : "Miscellaneous -- All Languages" ,
231+ hidden : false ,
232+ } ,
233+ {
234+ type : "refactor" ,
235+ section : "Miscellaneous -- All Languages" ,
236+ hidden : false ,
237+ } ,
238+ {
239+ type : "perf" ,
240+ section : "Miscellaneous -- All Languages" ,
241+ hidden : false ,
242+ } ,
243+ {
244+ type : "test" ,
245+ section : "Miscellaneous -- All Languages" ,
193246 hidden : false ,
194247 } ,
195248 { type : "style" , section : "Miscellaneous" , hidden : false } ,
@@ -204,7 +257,7 @@ module.exports = {
204257 [
205258 "@semantic-release/changelog" ,
206259 {
207- changelogFile : "CHANGELOG.md" ,
260+ changelogFile : "CHANGELOG-java .md" ,
208261 changelogTitle : "# Changelog" ,
209262 } ,
210263 ] ,
@@ -231,7 +284,7 @@ module.exports = {
231284 "@semantic-release/git" ,
232285 {
233286 assets : [
234- "CHANGELOG.md" ,
287+ "CHANGELOG-java .md" ,
235288 ...Object . values ( Runtimes ) . flatMap ( ( r ) => Object . keys ( r ) ) ,
236289 ] ,
237290 message :
0 commit comments