Commit 7bb880ae authored by Balasankar "Balu" C's avatar Balasankar "Balu" C

Fix protected branch detection in notification branch selection

Signed-off-by: default avatarBalasankar "Balu" C <balasankar@gitlab.com>
parent 67264703
......@@ -21,7 +21,7 @@ module NotificationBranchSelection
end
is_default_branch = ref == project.default_branch
is_protected_branch = project.protected_branches.exists?(name: ref)
is_protected_branch = ProtectedBranch.protected?(project, ref)
case branches_to_be_notified
when "all"
......
---
title: Fix protected branch detection used by notification service
merge_request: 18221
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment