diff --git a/src/api.ts b/src/api.ts index 3b38733..70755f6 100644 --- a/src/api.ts +++ b/src/api.ts @@ -11,9 +11,9 @@ import { CONFIG_MODES, getConfig } from './commands/config'; const config = getConfig(); -let apiKey = config?.OPENAI_API_KEY; -let basePath = config?.OPENAI_BASE_PATH; let maxTokens = config?.OPENAI_MAX_TOKENS; +let basePath = config?.OPENAI_BASE_PATH; +let apiKey = config?.OPENAI_API_KEY; const [command, mode] = process.argv.slice(2); diff --git a/src/commands/prepare-commit-msg-hook.ts b/src/commands/prepare-commit-msg-hook.ts index 1231128..5a9c258 100644 --- a/src/commands/prepare-commit-msg-hook.ts +++ b/src/commands/prepare-commit-msg-hook.ts @@ -17,6 +17,8 @@ export const prepareCommitMessageHook = async ( ); } + console.log({ commitSource }); + if (commitSource) return; if (isStageAllFlag) {