Skip to content

Commit

Permalink
chore: add chore to commit types, include explicit conditional logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rzmk committed Nov 29, 2023
1 parent 66ab8a3 commit 4f00300
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "commit-helper"
version = "0.1.0"
version = "0.1.1"
edition = "2021"

[[bin]]
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main() {

// Commit Type
let commit_type_options = vec![
"build", "ci", "docs", "feat", "fix", "perf", "refactor", "test",
"build", "ci", "chore", "docs", "feat", "fix", "perf", "refactor", "test",
];
let commit_type = Select::new("Type:", commit_type_options).prompt();
let commit_type = match commit_type {
Expand Down Expand Up @@ -43,7 +43,7 @@ fn main() {

match confirm {
Ok(true) => {
if run_git_add {
if run_git_add == true {
println!("Running git add -A");
if !dry_run {
Command::new("git")
Expand All @@ -54,7 +54,7 @@ fn main() {
}

println!("Running git commit -m \"{}\"", result_message);
if !dry_run {
if dry_run == false {
Command::new("git")
.args(["commit", "-m", result_message.as_str()])
.output()
Expand Down

0 comments on commit 4f00300

Please sign in to comment.