Skip to content

Commit e4581d0

Browse files
committed
🐛 Fixed the code and name to match.
1 parent 09d40f3 commit e4581d0

File tree

3 files changed

+71
-65
lines changed

3 files changed

+71
-65
lines changed

.release/release-template.hbs

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@
4747
{{/each}}
4848
{{/if}}
4949

50+
{{#if children-crossing}}
51+
### 🚸 Improve user experience / usability.
52+
{{#each children-crossing}}
53+
- {{> commitTemplate}}
54+
{{/each}}
55+
{{/if}}
56+
5057
{{#if iphone}}
5158
### 📱 Work on responsive design.
5259
{{#each iphone}}
@@ -103,13 +110,48 @@
103110
{{/each}}
104111
{{/if}}
105112

113+
{{#if rotating-light}}
114+
### 🚨 Remove linter warnings.
115+
{{#each rotating-light}}
116+
- {{> commitTemplate}}
117+
{{/each}}
118+
{{/if}}
119+
120+
{{#if green-heart}}
121+
### 💚 Fix CI Build.
122+
{{#each green-heart}}
123+
- {{> commitTemplate}}
124+
{{/each}}
125+
{{/if}}
126+
127+
{{#if arrow-down}}
128+
### ⬇️ Downgrade dependencies.
129+
{{#each arrow-down}}
130+
- {{> commitTemplate}}
131+
{{/each}}
132+
{{/if}}
133+
134+
{{#if arrow-up}}
135+
### ⬆️ Upgrade dependencies.
136+
{{#each arrow-up}}
137+
- {{> commitTemplate}}
138+
{{/each}}
139+
{{/if}}
140+
106141
{{#if pushpin}}
107142
### 📌 Pin dependencies to specific versions.
108143
{{#each pushpin}}
109144
- {{> commitTemplate}}
110145
{{/each}}
111146
{{/if}}
112147

148+
{{#if construction-worker}}
149+
### 👷 Add or update CI build system.
150+
{{#each construction-worker}}
151+
- {{> commitTemplate}}
152+
{{/each}}
153+
{{/if}}
154+
113155
{{#if recycle}}
114156
### ♻️ Refactor code.
115157
{{#each recycle}}
@@ -152,13 +194,27 @@
152194
{{/each}}
153195
{{/if}}
154196

197+
{{#if loud-sound}}
198+
### 🔊 Add or update logs.
199+
{{#each loud-sound}}
200+
- {{> commitTemplate}}
201+
{{/each}}
202+
{{/if}}
203+
155204
{{#if mute}}
156205
### 🔇 Remove logs.
157206
{{#each mute}}
158207
- {{> commitTemplate}}
159208
{{/each}}
160209
{{/if}}
161210

211+
{{#if building-construction}}
212+
### 🏗 Make architectural changes.
213+
{{#each building-construction}}
214+
- {{> commitTemplate}}
215+
{{/each}}
216+
{{/if}}
217+
162218
{{#if mag}}
163219
### 🔍 Improve SEO.
164220
{{#each mag}}
@@ -173,6 +229,13 @@
173229
{{/each}}
174230
{{/if}}
175231

232+
{{#if goal-net}}
233+
### 🥅 Catch errors.
234+
{{#each goal-net}}
235+
- {{> commitTemplate}}
236+
{{/each}}
237+
{{/if}}
238+
176239
{{#if memo}}
177240
### 📝 Add or update documentation.
178241
{{#each memo}}
@@ -201,41 +264,6 @@
201264
{{/each}}
202265
{{/if}}
203266

204-
{{#if rotating-light}}
205-
### 🚨 Remove linter warnings.
206-
{{#each rotating-light}}
207-
- {{> commitTemplate}}
208-
{{/each}}
209-
{{/if}}
210-
211-
{{#if green-heart}}
212-
### 💚 Fix CI Build.
213-
{{#each green-heart}}
214-
- {{> commitTemplate}}
215-
{{/each}}
216-
{{/if}}
217-
218-
{{#if arrow-down}}
219-
### ⬇️ Downgrade dependencies.
220-
{{#each arrow-down}}
221-
- {{> commitTemplate}}
222-
{{/each}}
223-
{{/if}}
224-
225-
{{#if arrow-up}}
226-
### ⬆️ Upgrade dependencies.
227-
{{#each arrow-up}}
228-
- {{> commitTemplate}}
229-
{{/each}}
230-
{{/if}}
231-
232-
{{#if construction-worker}}
233-
### 👷 Add or update CI build system.
234-
{{#each construction-worker}}
235-
- {{> commitTemplate}}
236-
{{/each}}
237-
{{/if}}
238-
239267
{{#if chart-with-upwards-trend}}
240268
### 📈 Add or update analytics or track code.
241269
{{#each chart-with-upwards-trend}}
@@ -327,34 +355,13 @@
327355
{{/each}}
328356
{{/if}}
329357

330-
{{#if loud-sound}}
331-
### 🔊 Add or update logs.
332-
{{#each loud-sound}}
333-
- {{> commitTemplate}}
334-
{{/each}}
335-
{{/if}}
336-
337358
{{#if busts-in-silhouette}}
338359
### 👥 Add or update contributor(s).
339360
{{#each busts-in-silhouette}}
340361
- {{> commitTemplate}}
341362
{{/each}}
342363
{{/if}}
343364

344-
{{#if children-crossing}}
345-
### 🚸 Improve user experience / usability.
346-
{{#each children-crossing}}
347-
- {{> commitTemplate}}
348-
{{/each}}
349-
{{/if}}
350-
351-
{{#if building-construction}}
352-
### 🏗 Make architectural changes.
353-
{{#each building-construction}}
354-
- {{> commitTemplate}}
355-
{{/each}}
356-
{{/if}}
357-
358365
{{#if clown-face}}
359366
### 🤡 Mock things.
360367
{{#each clown-face}}
@@ -397,13 +404,6 @@
397404
{{/each}}
398405
{{/if}}
399406

400-
{{#if goal-net}}
401-
### 🥅 Catch errors.
402-
{{#each goal-net}}
403-
- {{> commitTemplate}}
404-
{{/each}}
405-
{{/if}}
406-
407407
{{#if animation}}
408408
### 💫 Add or update animations and transitions.
409409
{{#each animation}}

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ gen:
6161
@echo
6262
@echo
6363
@echo "$(PURPLE)# GEN: 3. Generated!$(RESET)"
64-
@echo "Generated gitmojis.json and gitmojis.yml whith semver field"
64+
@echo "Generated gitmojis.json and gitmojis.yml with semver field"
6565
@echo "See ./build/dist"
6666

6767
@echo
@@ -81,6 +81,8 @@ list:
8181
@cat $(GITMOJI_FILE) | jq -c '.gitmojis[] | select(.semver=="patch") | $(FORMAT)'
8282
@echo "\n# None"
8383
@cat $(GITMOJI_FILE) | jq -c '.gitmojis[] | select(.semver=="none") | $(FORMAT)'
84+
@echo "\n# Ignore (Not to be added to the changelog when use semantic-release)"
85+
@cat $(GITMOJI_FILE) | jq -c '.gitmojis[] | select(.semver=="ignore") | $(FORMAT)'
8486

8587
scaffold: gen
8688
@echo
@@ -92,6 +94,10 @@ scaffold: gen
9294
mv $(OUT_DIR)/.release/release.yml $(OUT_DIR)/.github/workflows
9395
cp ./build/dist/release-template.hbs $(OUT_DIR)/.release
9496
cp ./build/src/semver.json $(OUT_DIR)/.release
97+
@echo
98+
@echo "$(LIGHTPURPLE)🎉 Add semantic-release setting files$(RESET)"
99+
@echo $(OUT_DIR)/.release
100+
@echo $(OUT_DIR)/.github/workflows/release.yml
95101

96102
# Short commands
97103
l: list

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)
8+
v.semver = semver(v.name.replace('-','_'))
99
res.gitmojis.push(v)
1010
}
1111

0 commit comments

Comments
 (0)