1 Commits
0.1.4 ... 0.1.5

Author SHA1 Message Date
ecba21bc70 Added missing auth header during code reviews
All checks were successful
Publish Library / Build NPM Project (push) Successful in 9s
Publish Library / Tag Version (push) Successful in 8s
2026-01-15 20:14:11 -05:00
2 changed files with 7 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@ztimson/ai-agents", "name": "@ztimson/ai-agents",
"version": "0.1.4", "version": "0.1.5",
"description": "AI agents", "description": "AI agents",
"keywords": ["ai", "review"], "keywords": ["ai", "review"],
"author": "ztimson", "author": "ztimson",

View File

@@ -26,8 +26,9 @@ dotenv.config({path: '.env.local', override: true, quiet: true, debug: false});
token = process.env['AI_TOKEN']; token = process.env['AI_TOKEN'];
console.log(`Reviewing: ${root}`); console.log(`Reviewing: ${root}`);
const info = await fetch(`${git}/api/v1/repos/${owner}/${repo}/pulls/${pr}`) const info = await fetch(`${git}/api/v1/repos/${owner}/${repo}/pulls/${pr}`, {
.then(async resp => { headers: {'Authorization': `token ${auth}`}
}).then(async resp => {
if(resp.ok) return resp.json(); if(resp.ok) return resp.json();
throw new Error(`${resp.status} ${await resp.text()}`); throw new Error(`${resp.status} ${await resp.text()}`);
}); });