mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-24 17:25:19 +08:00
Use for a repo action one database transaction (#19576)
... more context (part of #9307)
This commit is contained in:
@ -317,7 +317,7 @@ Loop:
|
||||
if protectedBranch == nil {
|
||||
return false, "", nil, &ErrWontSign{approved}
|
||||
}
|
||||
if protectedBranch.GetGrantedApprovalsCount(pr) < 1 {
|
||||
if protectedBranch.GetGrantedApprovalsCount(ctx, pr) < 1 {
|
||||
return false, "", nil, &ErrWontSign{approved}
|
||||
}
|
||||
case baseSigned:
|
||||
|
||||
Reference in New Issue
Block a user