Skip to content

Commit c88d0fa

Browse files
committed
Show a link to merge into fork if pull requests in base repo are disabled
1 parent 0e9c994 commit c88d0fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routers/private/hook_post_receive.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ func HookPostReceive(ctx *gitea_context.PrivateContext) {
184184
})
185185
return
186186
}
187-
baseRepo = repo.BaseRepo
187+
if repo.BaseRepo.AllowsPulls() {
188+
baseRepo = repo.BaseRepo
189+
}
188190
}
189191

190192
if !baseRepo.AllowsPulls() {

0 commit comments

Comments
 (0)