lib/modulesync/git_service/base.rb in modulesync-2.6.0 vs lib/modulesync/git_service/base.rb in modulesync-2.7.0

- old
+ new

@@ -1,10 +1,10 @@ module ModuleSync module GitService # Generic class for git services class Base - def open_pull_request(repo_path:, namespace:, title:, message:, source_branch:, target_branch:, labels:, noop:) # rubocop:disable Metrics/ParameterLists + def open_pull_request(repo_path:, namespace:, title:, message:, source_branch:, target_branch:, labels:, noop:) unless source_branch != target_branch raise ModuleSync::Error, "Unable to open a pull request with the same source and target branch: '#{source_branch}'" end @@ -53,10 +53,10 @@ nil end protected - def _open_pull_request(repo_path:, namespace:, title:, message:, source_branch:, target_branch:, labels:, noop:) # rubocop:disable Metrics/ParameterLists + def _open_pull_request(repo_path:, namespace:, title:, message:, source_branch:, target_branch:, labels:, noop:) raise NotImplementedError end end end end