Skip to content

Commit 4f00300

Browse files
author
rzmk
committed
chore: add chore to commit types, include explicit conditional logic
1 parent 66ab8a3 commit 4f00300

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "commit-helper"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55

66
[[bin]]

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414

1515
// Commit Type
1616
let commit_type_options = vec![
17-
"build", "ci", "docs", "feat", "fix", "perf", "refactor", "test",
17+
"build", "ci", "chore", "docs", "feat", "fix", "perf", "refactor", "test",
1818
];
1919
let commit_type = Select::new("Type:", commit_type_options).prompt();
2020
let commit_type = match commit_type {
@@ -43,7 +43,7 @@ fn main() {
4343

4444
match confirm {
4545
Ok(true) => {
46-
if run_git_add {
46+
if run_git_add == true {
4747
println!("Running git add -A");
4848
if !dry_run {
4949
Command::new("git")
@@ -54,7 +54,7 @@ fn main() {
5454
}
5555

5656
println!("Running git commit -m \"{}\"", result_message);
57-
if !dry_run {
57+
if dry_run == false {
5858
Command::new("git")
5959
.args(["commit", "-m", result_message.as_str()])
6060
.output()

0 commit comments

Comments
 (0)