Skip to content

Commit a81f159

Browse files
committed
chore: bump version and update keywords
- bump package version from 1.6.0 to 1.6.5 for release - remove openai and grok keywords to reflect broader AI support - optimize commit confirmation logic to skip prompt when --yes flag is set Signed-off-by: mingcheng <mingcheng@apache.org>
1 parent 797f22b commit a81f159

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

Cargo.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
1010

1111
[[package]]
1212
name = "aigitcommit"
13-
version = "1.6.1"
13+
version = "1.6.5"
1414
dependencies = [
1515
"arboard",
1616
"askama",
@@ -263,9 +263,9 @@ checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
263263

264264
[[package]]
265265
name = "cc"
266-
version = "1.2.41"
266+
version = "1.2.43"
267267
source = "registry+https://github.com/rust-lang/crates.io-index"
268-
checksum = "ac9fe6cdbb24b6ade63616c0a0688e45bb56732262c158df3c0c4bea4ca47cb7"
268+
checksum = "739eb0f94557554b3ca9a86d2d37bebd49c5e6d0c1d2bda35ba5bdac830befc2"
269269
dependencies = [
270270
"find-msvc-tools",
271271
"jobserver",
@@ -586,9 +586,9 @@ checksum = "52051878f80a721bb68ebfbc930e07b65ba72f2da88968ea5c06fd6ca3d3a127"
586586

587587
[[package]]
588588
name = "flate2"
589-
version = "1.1.4"
589+
version = "1.1.5"
590590
source = "registry+https://github.com/rust-lang/crates.io-index"
591-
checksum = "dc5a4e564e38c699f2880d3fda590bedc2e69f3f84cd48b457bd892ce61d0aa9"
591+
checksum = "bfe33edd8e85a12a67454e37f8c75e730830d83e313556ab9ebf9ee7fbeb3bfb"
592592
dependencies = [
593593
"crc32fast",
594594
"miniz_oxide",
@@ -1277,9 +1277,9 @@ dependencies = [
12771277

12781278
[[package]]
12791279
name = "moxcms"
1280-
version = "0.7.7"
1280+
version = "0.7.8"
12811281
source = "registry+https://github.com/rust-lang/crates.io-index"
1282-
checksum = "c588e11a3082784af229e23e8e4ecf5bcc6fbe4f69101e0421ce8d79da7f0b40"
1282+
checksum = "692af879e4d9383c0fd9dec15524af6b6977c8bf1c6b278a4526d5341347c574"
12831283
dependencies = [
12841284
"num-traits",
12851285
"pxfm",

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aigitcommit"
3-
version = "1.6.1"
3+
version = "1.6.5"
44
edition = "2024"
55
description = "A simple git commit message generator by OpenAI compaction model."
66
license-file = "LICENSE"

src/main.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,10 @@ async fn main() -> std::result::Result<(), Box<dyn Error>> {
244244
if cli.commit {
245245
trace!("commit option is enabled, will commit the changes to the repository");
246246

247-
cliclack::intro(format!("{PKG_NAME} v{PKG_VERSION}"))?;
248-
let commit = cliclack::confirm("Are you sure to commit with those changes?").interact()?;
249-
250-
// Prompt the user for confirmation if --yes option is not enabled
251-
if cli.yes || commit {
247+
if cli.yes || {
248+
cliclack::intro(format!("{PKG_NAME} v{PKG_VERSION}"))?;
249+
cliclack::confirm("Are you sure to commit with those changes?").interact()?
250+
} {
252251
match repository.commit(&message) {
253252
Ok(oid) => {
254253
cliclack::note("Commit successful, last commit ID:", oid)?;

0 commit comments

Comments
 (0)