feat: adapt pullfrog for gitea + ollama
This commit is contained in:
+2
-2
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user