mirror of
https://github.com/rzmk/commit-helper.git
synced 2025-12-19 05:29:24 +00:00
✨ feat: add emoji prefixes to commit types and add style type, referenced from: https://gist.github.com/alpteo/e93d754e5e09907c6362c4230fb66f87.
This commit is contained in:
parent
490148727d
commit
fca5c0f5bc
1 changed files with 10 additions and 9 deletions
19
src/main.rs
19
src/main.rs
|
|
@ -18,15 +18,16 @@ fn main() {
|
||||||
|
|
||||||
// Otherwise, prompt for a message
|
// Otherwise, prompt for a message
|
||||||
let commit_type_options = vec![
|
let commit_type_options = vec![
|
||||||
CommitType::new("build", "build system and dependencies"),
|
CommitType::new("👷 build", "build system and dependencies"),
|
||||||
CommitType::new("ci", "continuous integration"),
|
CommitType::new("💚 ci", "continuous integration"),
|
||||||
CommitType::new("chore", "misc/maintenance not related to core code"),
|
CommitType::new("🔧 chore", "misc/maintenance not related to core code"),
|
||||||
CommitType::new("docs", "documentation changes (e.g., README.md, comments)"),
|
CommitType::new("📝 docs", "documentation changes (e.g., README.md, comments)"),
|
||||||
CommitType::new("feat", "new feature or significant enhancement"),
|
CommitType::new("✨ feat", "new feature or significant enhancement"),
|
||||||
CommitType::new("fix", "bug fix or error correction"),
|
CommitType::new("🐛 fix", "bug fix or error correction"),
|
||||||
CommitType::new("perf", "performance improvement"),
|
CommitType::new("⚡ perf", "performance improvement"),
|
||||||
CommitType::new("refactor", "code restructuring or cleanup"),
|
CommitType::new("♻️ refactor", "code restructuring or cleanup"),
|
||||||
CommitType::new("test", "add or update tests"),
|
CommitType::new("🎨 style", "formatting, white-space, etc. (no code change)"),
|
||||||
|
CommitType::new("✅ test", "add or update tests"),
|
||||||
];
|
];
|
||||||
|
|
||||||
// Format the commit type options for display
|
// Format the commit type options for display
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue