Skip to content

Commit 3a1889e

Browse files
committed
fix bug
1 parent 91ccdd4 commit 3a1889e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routers/repo/setting_protected_branch.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ func SettingsProtectedBranchPost(ctx *context.Context, f auth.ProtectBranchForm)
207207
if strings.TrimSpace(f.MergeWhitelistUsers) != "" {
208208
mergeWhitelistUsers, _ = base.StringsToInt64s(strings.Split(f.MergeWhitelistUsers, ","))
209209
}
210+
if strings.TrimSpace(f.MergeWhitelistTeams) != "" {
211+
mergeWhitelistTeams, _ = base.StringsToInt64s(strings.Split(f.MergeWhitelistTeams, ","))
212+
}
210213

211214
protectBranch.EnableStatusCheck = f.EnableStatusCheck
212215
protectBranch.StatusCheckContexts = f.StatusCheckContexts

0 commit comments

Comments
 (0)