2 Commits

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
19392b70a6 Bump
All checks were successful
Publish Library / Build NPM Project (push) Successful in 6s
Publish Library / Tag Version (push) Successful in 5s
2026-01-14 16:02:36 -05:00
2 changed files with 7 additions and 6 deletions

View File

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

View File

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