feat(README.md): add GitHub Hackathon winner badge to project description
docs(README.md): restructure README, move CLI setup instructions to top for better visibility feat(cli.cjs): extend file exclusion list in 'getDiff' to include image files for better performance refactor(config.ts): add more model options in configValidators for flexibility refactor(config.ts): set default model to 'gpt-3.5-turbo-16k' for better performance refactor(git.ts): simplify 'getCoreHooksPath' function for readability feat(git.ts): extend file exclusion list in 'getDiff' to include image files for better performance
This commit is contained in:
+3
-6
@@ -18717,10 +18717,7 @@ var getOpenCommitIgnore = () => {
|
||||
return ig;
|
||||
};
|
||||
var getCoreHooksPath = async () => {
|
||||
const { stdout } = await execa("git", [
|
||||
"config",
|
||||
"core.hooksPath"
|
||||
]);
|
||||
const { stdout } = await execa("git", ["config", "core.hooksPath"]);
|
||||
return stdout;
|
||||
};
|
||||
var getStagedFiles = async () => {
|
||||
@@ -18764,11 +18761,11 @@ var gitAdd = async ({ files }) => {
|
||||
};
|
||||
var getDiff = async ({ files }) => {
|
||||
const lockFiles = files.filter(
|
||||
(file) => file.includes(".lock") || file.includes("-lock.")
|
||||
(file) => file.includes(".lock") || file.includes("-lock.") || file.includes(".svg") || file.includes(".png") || file.includes(".jpg") || file.includes(".jpeg") || file.includes(".webp") || file.includes(".gif")
|
||||
);
|
||||
if (lockFiles.length) {
|
||||
ce(
|
||||
`Some files are '.lock' files which are excluded by default from 'git diff'. No commit messages are generated for this files:
|
||||
`Some files are excluded by default from 'git diff'. No commit messages are generated for this files:
|
||||
${lockFiles.join(
|
||||
"\n"
|
||||
)}`
|
||||
|
||||
Reference in New Issue
Block a user