Skip to content

Commit 0ccd9b4

Browse files
committed
💚 Fix release-template (replace - to _)
1 parent bcb75b3 commit 0ccd9b4

File tree

3 files changed

+89
-89
lines changed

3 files changed

+89
-89
lines changed

.release/release-template.hbs

Lines changed: 86 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333
{{/each}}
3434
{{/if}}
3535

36+
{{#if globe_with_meridians}}
37+
### 🌐 Internationalization and localization.
38+
{{#each globe_with_meridians}}
39+
- {{> commitTemplate}}
40+
{{/each}}
41+
{{/if}}
42+
3643
{{#if bento}}
3744
### 🍱 Add or update assets.
3845
{{#each bento}}
@@ -47,9 +54,9 @@
4754
{{/each}}
4855
{{/if}}
4956

50-
{{#if children-crossing}}
57+
{{#if children_crossing}}
5158
### 🚸 Improve user experience / usability.
52-
{{#each children-crossing}}
59+
{{#each children_crossing}}
5360
- {{> commitTemplate}}
5461
{{/each}}
5562
{{/if}}
@@ -68,6 +75,13 @@
6875
{{/each}}
6976
{{/if}}
7077

78+
{{#if triangular_flag_on_post}}
79+
### 🚩 Add, update, or remove feature flags.
80+
{{#each triangular_flag_on_post}}
81+
- {{> commitTemplate}}
82+
{{/each}}
83+
{{/if}}
84+
7185
{{#if art}}
7286
### 🎨 Improve structure / format of the code.
7387
{{#each art}}
@@ -103,37 +117,44 @@
103117
{{/each}}
104118
{{/if}}
105119

120+
{{#if white_check_mark}}
121+
### ✅ Add or update tests.
122+
{{#each white_check_mark}}
123+
- {{> commitTemplate}}
124+
{{/each}}
125+
{{/if}}
126+
106127
{{#if lock}}
107128
### 🔒 Fix security issues.
108129
{{#each lock}}
109130
- {{> commitTemplate}}
110131
{{/each}}
111132
{{/if}}
112133

113-
{{#if rotating-light}}
134+
{{#if rotating_light}}
114135
### 🚨 Remove linter warnings.
115-
{{#each rotating-light}}
136+
{{#each rotating_light}}
116137
- {{> commitTemplate}}
117138
{{/each}}
118139
{{/if}}
119140

120-
{{#if green-heart}}
141+
{{#if green_heart}}
121142
### 💚 Fix CI Build.
122-
{{#each green-heart}}
143+
{{#each green_heart}}
123144
- {{> commitTemplate}}
124145
{{/each}}
125146
{{/if}}
126147

127-
{{#if arrow-down}}
148+
{{#if arrow_down}}
128149
### ⬇️ Downgrade dependencies.
129-
{{#each arrow-down}}
150+
{{#each arrow_down}}
130151
- {{> commitTemplate}}
131152
{{/each}}
132153
{{/if}}
133154

134-
{{#if arrow-up}}
155+
{{#if arrow_up}}
135156
### ⬆️ Upgrade dependencies.
136-
{{#each arrow-up}}
157+
{{#each arrow_up}}
137158
- {{> commitTemplate}}
138159
{{/each}}
139160
{{/if}}
@@ -145,9 +166,16 @@
145166
{{/each}}
146167
{{/if}}
147168

148-
{{#if construction-worker}}
169+
{{#if construction_worker}}
149170
### 👷 Add or update CI build system.
150-
{{#each construction-worker}}
171+
{{#each construction_worker}}
172+
- {{> commitTemplate}}
173+
{{/each}}
174+
{{/if}}
175+
176+
{{#if chart_with_upwards_trend}}
177+
### 📈 Add or update analytics or track code.
178+
{{#each chart_with_upwards_trend}}
151179
- {{> commitTemplate}}
152180
{{/each}}
153181
{{/if}}
@@ -159,6 +187,20 @@
159187
{{/each}}
160188
{{/if}}
161189

190+
{{#if heavy_plus_sign}}
191+
### ➕ Add a dependency.
192+
{{#each heavy_plus_sign}}
193+
- {{> commitTemplate}}
194+
{{/each}}
195+
{{/if}}
196+
197+
{{#if heavy_minus_sign}}
198+
### ➖ Remove a dependency.
199+
{{#each heavy_minus_sign}}
200+
- {{> commitTemplate}}
201+
{{/each}}
202+
{{/if}}
203+
162204
{{#if wrench}}
163205
### 🔧 Add or update configuration files.
164206
{{#each wrench}}
@@ -194,9 +236,23 @@
194236
{{/each}}
195237
{{/if}}
196238

197-
{{#if loud-sound}}
239+
{{#if page_facing_up}}
240+
### 📄 Add or update license.
241+
{{#each page_facing_up}}
242+
- {{> commitTemplate}}
243+
{{/each}}
244+
{{/if}}
245+
246+
{{#if card_file_box}}
247+
### 🗃 Perform database related changes.
248+
{{#each card_file_box}}
249+
- {{> commitTemplate}}
250+
{{/each}}
251+
{{/if}}
252+
253+
{{#if loud_sound}}
198254
### 🔊 Add or update logs.
199-
{{#each loud-sound}}
255+
{{#each loud_sound}}
200256
- {{> commitTemplate}}
201257
{{/each}}
202258
{{/if}}
@@ -208,9 +264,9 @@
208264
{{/each}}
209265
{{/if}}
210266

211-
{{#if building-construction}}
267+
{{#if building_construction}}
212268
### 🏗 Make architectural changes.
213-
{{#each building-construction}}
269+
{{#each building_construction}}
214270
- {{> commitTemplate}}
215271
{{/each}}
216272
{{/if}}
@@ -229,9 +285,9 @@
229285
{{/each}}
230286
{{/if}}
231287

232-
{{#if goal-net}}
288+
{{#if goal_net}}
233289
### 🥅 Catch errors.
234-
{{#each goal-net}}
290+
{{#each goal_net}}
235291
- {{> commitTemplate}}
236292
{{/each}}
237293
{{/if}}
@@ -250,48 +306,13 @@
250306
{{/each}}
251307
{{/if}}
252308

253-
{{#if white-check-mark}}
254-
### ✅ Add or update tests.
255-
{{#each white-check-mark}}
256-
- {{> commitTemplate}}
257-
{{/each}}
258-
{{/if}}
259-
260309
{{#if bookmark}}
261310
### 🔖 Release / Version tags.
262311
{{#each bookmark}}
263312
- {{> commitTemplate}}
264313
{{/each}}
265314
{{/if}}
266315

267-
{{#if chart-with-upwards-trend}}
268-
### 📈 Add or update analytics or track code.
269-
{{#each chart-with-upwards-trend}}
270-
- {{> commitTemplate}}
271-
{{/each}}
272-
{{/if}}
273-
274-
{{#if heavy-plus-sign}}
275-
### ➕ Add a dependency.
276-
{{#each heavy-plus-sign}}
277-
- {{> commitTemplate}}
278-
{{/each}}
279-
{{/if}}
280-
281-
{{#if heavy-minus-sign}}
282-
### ➖ Remove a dependency.
283-
{{#each heavy-minus-sign}}
284-
- {{> commitTemplate}}
285-
{{/each}}
286-
{{/if}}
287-
288-
{{#if globe-with-meridians}}
289-
### 🌐 Internationalization and localization.
290-
{{#each globe-with-meridians}}
291-
- {{> commitTemplate}}
292-
{{/each}}
293-
{{/if}}
294-
295316
{{#if pencil2}}
296317
### ✏️ Fix typos.
297318
{{#each pencil2}}
@@ -313,16 +334,9 @@
313334
{{/each}}
314335
{{/if}}
315336

316-
{{#if twisted-rightwards-arrows}}
337+
{{#if twisted_rightwards_arrows}}
317338
### 🔀 Merge branches.
318-
{{#each twisted-rightwards-arrows}}
319-
- {{> commitTemplate}}
320-
{{/each}}
321-
{{/if}}
322-
323-
{{#if page-facing-up}}
324-
### 📄 Add or update license.
325-
{{#each page-facing-up}}
339+
{{#each twisted_rightwards_arrows}}
326340
- {{> commitTemplate}}
327341
{{/each}}
328342
{{/if}}
@@ -341,44 +355,37 @@
341355
{{/each}}
342356
{{/if}}
343357

344-
{{#if speech-balloon}}
358+
{{#if speech_balloon}}
345359
### 💬 Add or update text and literals.
346-
{{#each speech-balloon}}
360+
{{#each speech_balloon}}
347361
- {{> commitTemplate}}
348362
{{/each}}
349363
{{/if}}
350364

351-
{{#if card-file-box}}
352-
### 🗃 Perform database related changes.
353-
{{#each card-file-box}}
354-
- {{> commitTemplate}}
355-
{{/each}}
356-
{{/if}}
357-
358-
{{#if busts-in-silhouette}}
365+
{{#if busts_in_silhouette}}
359366
### 👥 Add or update contributor(s).
360-
{{#each busts-in-silhouette}}
367+
{{#each busts_in_silhouette}}
361368
- {{> commitTemplate}}
362369
{{/each}}
363370
{{/if}}
364371

365-
{{#if clown-face}}
372+
{{#if clown_face}}
366373
### 🤡 Mock things.
367-
{{#each clown-face}}
374+
{{#each clown_face}}
368375
- {{> commitTemplate}}
369376
{{/each}}
370377
{{/if}}
371378

372-
{{#if see-no-evil}}
379+
{{#if see_no_evil}}
373380
### 🙈 Add or update a .gitignore file.
374-
{{#each see-no-evil}}
381+
{{#each see_no_evil}}
375382
- {{> commitTemplate}}
376383
{{/each}}
377384
{{/if}}
378385

379-
{{#if camera-flash}}
386+
{{#if camera_flash}}
380387
### 📸 Add or update snapshots.
381-
{{#each camera-flash}}
388+
{{#each camera_flash}}
382389
- {{> commitTemplate}}
383390
{{/each}}
384391
{{/if}}
@@ -397,13 +404,6 @@
397404
{{/each}}
398405
{{/if}}
399406

400-
{{#if triangular-flag-on-post}}
401-
### 🚩 Add, update, or remove feature flags.
402-
{{#each triangular-flag-on-post}}
403-
- {{> commitTemplate}}
404-
{{/each}}
405-
{{/if}}
406-
407407
{{#if animation}}
408408
### 💫 Add or update animations and transitions.
409409
{{#each animation}}

gen-release-template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ function run() {
3535

3636
function buildH3Template(gitmojiObj) {
3737
return `
38-
{{#if ${gitmojiObj.name}}}
38+
{{#if ${gitmojiObj.name.replace(/-/g,'_')}}}
3939
### ${gitmojiObj.emoji} ${gitmojiObj.description}
40-
{{#each ${gitmojiObj.name}}}
40+
{{#each ${gitmojiObj.name.replace(/-/g,'_')}}}
4141
- {{> commitTemplate}}
4242
{{/each}}
4343
{{/if}}

gitmoji-semver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const semverObj = JSON.parse(fs.readFileSync('./build/src/semver.json', 'utf8'))
55
function run() {
66
const res = {gitmojis: []};
77
for (const v of gitmojisObj.gitmojis) {
8-
v.semver = semver(v.name.replace('-','_'))
8+
v.semver = semver(v.name.replace(/-/g,'_'))
99
res.gitmojis.push(v)
1010
}
1111

0 commit comments

Comments
 (0)