Fixed review?
Some checks failed
Build and publish / Build Container (push) Successful in 49s
Code review / review (pull_request) Failing after 3s

This commit is contained in:
2025-12-27 20:48:20 -05:00
parent 1b3232b10c
commit bee0029469
4 changed files with 11 additions and 16 deletions

View File

@@ -20,11 +20,11 @@ dotenv.config({path: '.env.local', override: true});
model = process.env['AI_MODEL'],
token = process.env['AI_TOKEN'];
console.log(`Reviewing: ${root}\n`);
const comments = [];
const commit = await $`cd ${root} && git log -1 --pretty=format:%H`;
const gitDiff = await $`cd ${root} && git diff ${branch}`;
console.log(`Reviewing: ${root}\n`);
let options = {ollama: {model, host}};
if(host === 'anthropic') options = {anthropic: {model, token}};