Skip to content

Commit 9a12c2c

Browse files
committed
✨ feat: new more_info (Formatted)
1 parent 568d2d1 commit 9a12c2c

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

src/popups/conventional_commit.rs

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ enum CommitType {
5454
enum MoreInfoCommit {
5555
// 🎨
5656
CodeStyle,
57+
// 💅
58+
Formatted,
5759
// ⚡️
5860
Performance,
5961
// 🐛
@@ -181,9 +183,7 @@ impl MoreInfoCommit {
181183
MoreInfoCommit::Down => ("⬇️", "downgrade", "Down"),
182184
MoreInfoCommit::Up => ("⬆️", "upgrade", "Up"),
183185
MoreInfoCommit::CI => ("👷", "", "CI related"),
184-
MoreInfoCommit::Refactor => {
185-
("♻️", "", "Refactor related")
186-
}
186+
MoreInfoCommit::Refactor => ("♻️", "", "Refactor related"),
187187
MoreInfoCommit::TrackCode => {
188188
("📈", "track", "Tracking code")
189189
}
@@ -254,6 +254,7 @@ impl MoreInfoCommit {
254254
MoreInfoCommit::Validation => {
255255
("🦺", "validation", "Validation")
256256
}
257+
MoreInfoCommit::Formatted => ("💅", "fmt", "Formatted"),
257258
}
258259
}
259260
}
@@ -265,15 +266,15 @@ impl CommitType {
265266
vec![
266267
MoreInfoCommit::Bug,
267268
MoreInfoCommit::CriticalBug,
268-
MoreInfoCommit::Security,
269+
MoreInfoCommit::QuickFix,
269270
MoreInfoCommit::Warning,
270-
MoreInfoCommit::TrackCode,
271271
MoreInfoCommit::Typo,
272272
MoreInfoCommit::TextLiteral,
273+
MoreInfoCommit::Security,
274+
MoreInfoCommit::TrackCode,
273275
MoreInfoCommit::ExternalDependencyChange,
274276
MoreInfoCommit::DatabaseRelated,
275277
MoreInfoCommit::Authorization,
276-
MoreInfoCommit::QuickFix,
277278
MoreInfoCommit::HealthCheck,
278279
MoreInfoCommit::Business,
279280
MoreInfoCommit::Infra,
@@ -295,24 +296,24 @@ impl CommitType {
295296
MoreInfoCommit::Validation,
296297
],
297298
CommitType::Chore | CommitType::Refactor => vec![
298-
MoreInfoCommit::Security,
299299
MoreInfoCommit::Refactor,
300-
MoreInfoCommit::TrackCode,
301-
MoreInfoCommit::Internationalization,
300+
MoreInfoCommit::ArchitecturalChanges,
302301
MoreInfoCommit::RenameResources,
303-
MoreInfoCommit::Accessibility,
304-
MoreInfoCommit::Readme,
305-
MoreInfoCommit::License,
302+
MoreInfoCommit::RemoveLogs,
306303
MoreInfoCommit::TextLiteral,
304+
MoreInfoCommit::RemoveDeadCode,
307305
MoreInfoCommit::DatabaseRelated,
308-
MoreInfoCommit::RemoveLogs,
306+
MoreInfoCommit::Security,
307+
MoreInfoCommit::Readme,
308+
MoreInfoCommit::License,
309309
MoreInfoCommit::ImproveExperience,
310-
MoreInfoCommit::ArchitecturalChanges,
310+
MoreInfoCommit::TrackCode,
311+
MoreInfoCommit::Internationalization,
312+
MoreInfoCommit::Accessibility,
311313
MoreInfoCommit::GitIgnore,
312314
MoreInfoCommit::Flag,
313315
MoreInfoCommit::Trash,
314316
MoreInfoCommit::Authorization,
315-
MoreInfoCommit::RemoveDeadCode,
316317
MoreInfoCommit::Business,
317318
MoreInfoCommit::Infra,
318319
MoreInfoCommit::Validation,
@@ -351,15 +352,16 @@ impl CommitType {
351352
}
352353
CommitType::Style => {
353354
vec![
355+
MoreInfoCommit::Formatted,
354356
MoreInfoCommit::CodeStyle,
355357
MoreInfoCommit::UI,
356358
MoreInfoCommit::ImproveExperience,
357359
]
358360
}
359361
CommitType::Build => vec![MoreInfoCommit::CI],
360362
CommitType::Debug => vec![
361-
MoreInfoCommit::TrackCode,
362363
MoreInfoCommit::AddLogs,
364+
MoreInfoCommit::TrackCode,
363365
MoreInfoCommit::HealthCheck,
364366
MoreInfoCommit::RemoveLogs,
365367
],

0 commit comments

Comments
 (0)