Group push rules: extract shared logic from `PushRules` into a module
Implementation plan
- Extract shared logic from
PushRulesinto a module. - Include the new module in the new
GroupPushRulemodel (https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/models/group_push_rule.rb).
Expectations
Create a shared module between PushRules and GroupPushRule using Group push rules: Create table `group_push_rules` (#498933 - closed) as a reference.
Edited by Javiera Tapia