From 579c607233e7512a7c8cf5ac8d287f2e8ed09d71 Mon Sep 17 00:00:00 2001 From: aaronsaikovski Date: Fri, 29 Aug 2025 16:41:31 +1000 Subject: [PATCH 1/4] chore(.idea): Add IntelliJ IDEA project config files --- .idea/.gitignore | 8 ++++++++ .idea/git-cmt-rs.iml | 11 +++++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ 4 files changed, 33 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/git-cmt-rs.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/git-cmt-rs.iml b/.idea/git-cmt-rs.iml new file mode 100644 index 0000000..cf84ae4 --- /dev/null +++ b/.idea/git-cmt-rs.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..4c3bb26 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file From a55b70ad7eac8d21d50a6be48731c7c520f18250 Mon Sep 17 00:00:00 2001 From: aaronsaikovski Date: Fri, 29 Aug 2025 16:42:04 +1000 Subject: [PATCH 2/4] feat(vscode,main.rs): Add VSCode launch config and require scope in JSON --- .vscode/launch.json | 16 ++++++++++++++++ src/main.rs | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..5f4fa58 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "(Windows) Launch", + "type": "cppvsdbg", + "request": "launch", + "program": "${workspaceRoot}/target/debug/git-cmt-rs.exe", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "console": "externalTerminal" + } + ] +} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index f0e738c..0a02bac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -111,10 +111,10 @@ Return ONLY valid JSON, no other text."#; let schema = serde_json::json!({ "type": "object", "additionalProperties": false, - "required": ["type", "message"], + "required": ["type", "scope", "message"], // <- include "scope" "properties": { "type": { "type": "string", "enum": ["feat","fix","docs","style","refactor","test","chore"] }, - "scope": { "type": "string" }, + "scope": { "type": "string" }, // model can output "" if nothing fits "message":{ "type": "string", "maxLength": 50 } } }); From 61f23711d77a44d16785a70287b8d2a23616b152 Mon Sep 17 00:00:00 2001 From: aaronsaikovski Date: Fri, 29 Aug 2025 16:44:49 +1000 Subject: [PATCH 3/4] chore(Cargo.lock): Update dependencies to newer versions --- Cargo.lock | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b2ef469..71b212c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,9 +40,9 @@ checksum = "b0674a1ddeecb70197781e945de4b3b8ffb61fa939a5597bcf48503737663100" [[package]] name = "async-compression" -version = "0.4.28" +version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6448dfb3960f0b038e88c781ead1e7eb7929dfc3a71a1336ec9086c00f6d1e75" +checksum = "5bee399cc3a623ec5a2db2c5b90ee0190a2260241fbe0c023ac8f7bab426aaf8" dependencies = [ "brotli", "compression-codecs", @@ -143,9 +143,9 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "compression-codecs" -version = "0.4.28" +version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46cc6539bf1c592cff488b9f253b30bc0ec50d15407c2cf45e27bd8f308d5905" +checksum = "c7eea68f0e02c2b0aa8856e9a9478444206d4b6828728e7b0697c0f8cca265cb" dependencies = [ "brotli", "compression-core", @@ -157,9 +157,9 @@ dependencies = [ [[package]] name = "compression-core" -version = "0.4.28" +version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2957e823c15bde7ecf1e8b64e537aa03a6be5fda0e2334e99887669e75b12e01" +checksum = "e47641d3deaf41fb1538ac1f54735925e275eaf3bf4d55c81b137fba797e5cbb" [[package]] name = "core-foundation" @@ -330,7 +330,7 @@ dependencies = [ "js-sys", "libc", "r-efi", - "wasi 0.14.2+wasi-0.2.4", + "wasi 0.14.3+wasi-0.2.4", "wasm-bindgen", ] @@ -821,9 +821,9 @@ checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" [[package]] name = "potential_utf" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5a7c30837279ca13e7c867e9e40053bc68740f988cb07f7ca6df43cc734b585" +checksum = "84df19adbe5b5a0782edcab45899906947ab039ccf4573713735ee7de1e6b08a" dependencies = [ "zerovec", ] @@ -1489,11 +1489,11 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" [[package]] name = "wasi" -version = "0.14.2+wasi-0.2.4" +version = "0.14.3+wasi-0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" +checksum = "6a51ae83037bdd272a9e28ce236db8c07016dd0d50c27038b3f407533c030c95" dependencies = [ - "wit-bindgen-rt", + "wit-bindgen", ] [[package]] @@ -1788,13 +1788,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" [[package]] -name = "wit-bindgen-rt" -version = "0.39.0" +name = "wit-bindgen" +version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" -dependencies = [ - "bitflags", -] +checksum = "052283831dbae3d879dc7f51f3d92703a316ca49f91540417d38591826127814" [[package]] name = "writeable" From e3f5c94d0355db0e02a8ae60bc3f7839c72f77d5 Mon Sep 17 00:00:00 2001 From: aaronsaikovski Date: Fri, 29 Aug 2025 16:47:26 +1000 Subject: [PATCH 4/4] style(.github/workflows): Remove extra blank line in CI workflow --- .github/workflows/rust-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 0556d48..0a73015 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -26,7 +26,6 @@ jobs: uses: dtolnay/rust-toolchain@stable with: components: clippy, rustfmt - - name: Cache cargo registry + build uses: actions/cache@v4 with: