Fix create_review and various opencode things

This commit is contained in:
Colin McDonnell
2025-12-16 22:14:41 -08:00
parent 36d249908e
commit 9132a59758
6 changed files with 129 additions and 102 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ export function PullRequestInfoTool(ctx: Context) {
const data = pr.data;
// detect fork PRs - head repo differs from base repo
const isFork = data.head.repo.full_name !== data.base.repo.full_name;
// detect fork PRs - head repo differs from base repo (head.repo can be null if fork was deleted)
const isFork = data.head.repo?.full_name !== data.base.repo.full_name;
return {
number: data.number,