feat: adapt pullfrog for gitea + ollama

This commit is contained in:
2026-05-31 01:01:00 -05:00
parent 36ac64a5b6
commit 2aca1a3aa3
183 changed files with 1419 additions and 28292 deletions
+2 -2
View File
@@ -217,7 +217,7 @@ export function classifyPushError(msg: string): PushErrorKind {
const TRANSIENT_RETRY_DELAYS_MS = [2000, 5000];
export function PushBranchTool(ctx: ToolContext) {
const defaultBranch = ctx.repo.data.default_branch || "main";
const defaultBranch = process.env.DEFAULT_BRANCH || "main";
const pushPermission = ctx.payload.push;
return tool({
@@ -643,7 +643,7 @@ const DeleteBranch = type({
export function DeleteBranchTool(ctx: ToolContext) {
const pushPermission = ctx.payload.push;
const defaultBranch = ctx.repo.data.default_branch || "main";
const defaultBranch = process.env.DEFAULT_BRANCH || "main";
return tool({
name: "delete_branch",