From f02723bdc61b4d46418bdc1d469694df2823483c Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Sun, 12 May 2024 10:19:02 +0200 Subject: [PATCH] :bug: ai commit (correct regular/conventional) --- bin/§ai-commit.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/§ai-commit.mjs b/bin/§ai-commit.mjs index 8e1e1ff..fba522a 100755 --- a/bin/§ai-commit.mjs +++ b/bin/§ai-commit.mjs @@ -68,7 +68,7 @@ $.api("", true) .map(pipe( j=> j.choices[0].text.trim(), convertToArray, - format==="regular" ? i=> i : i=> gitmoji(i, format==="git3moji"), + format==="regular" || format==="conventional" ? i=> i : i=> gitmoji(i, format==="git3moji"), a=> a.join("\n") )) .join("\n\n");