Commit d198605c authored by Kerri Miller's avatar Kerri Miller

Update ghosted method to expect Entry obj

parent 1adabce4
...@@ -44,10 +44,10 @@ module EE ...@@ -44,10 +44,10 @@ module EE
merge_request.target_project merge_request.target_project
end end
def self.find_or_create_code_owner_rule(merge_request, pattern) def self.find_or_create_code_owner_rule(merge_request, entry)
merge_request.approval_rules.safe_find_or_create_by( merge_request.approval_rules.safe_find_or_create_by(
code_owner: true, code_owner: true,
name: pattern name: entry.pattern
) )
end end
......
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