🐛 ai commit (correct regular/conventional)

This commit is contained in:
Jan Andrle 2024-05-12 10:19:02 +02:00
parent 352632e5a5
commit f02723bdc6
Signed by: jaandrle
GPG Key ID: B3A25AED155AFFAB

View File

@ -68,7 +68,7 @@ $.api("", true)
.map(pipe( .map(pipe(
j=> j.choices[0].text.trim(), j=> j.choices[0].text.trim(),
convertToArray, 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") a=> a.join("\n")
)) ))
.join("\n\n"); .join("\n\n");