From 61d4e571a7e086f53f5f8a7713151839e1a32151 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 8 Oct 2025 14:43:38 +0000 Subject: [PATCH] Fix Pr Create crash (#823) Fix #822 Reviewed-on: https://gitea.com/gitea/tea/pulls/823 Reviewed-by: techknowlogick Co-authored-by: Lunny Xiao Co-committed-by: Lunny Xiao --- modules/interact/pull_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/interact/pull_create.go b/modules/interact/pull_create.go index 6ef56fb..6233405 100644 --- a/modules/interact/pull_create.go +++ b/modules/interact/pull_create.go @@ -33,7 +33,7 @@ func CreatePull(ctx *context.TeaContext) (err error) { if ctx.LocalRepo != nil { headOwner, headBranch, err = task.GetDefaultPRHead(ctx.LocalRepo) if err == nil { - validator = nil + validator = func(string) error { return nil } } }