Skip to content
Snippets Groups Projects

Assign approvers based on code owners

Merged Mark Chao requested to merge 1012-assign-code-owner-as-approver into master
All threads resolved!
Compare and
36 files
+ 559
73
Compare changes
  • Side-by-side
  • Inline
Files
36
+ 11
0
# frozen_string_literal: true
require 'set'
class Compare
include Gitlab::Utils::StrongMemoize
@@ -77,4 +79,13 @@ def diff_refs
head_sha: head_commit_sha
)
end
def get_paths
paths = Set.new
diffs.diff_files.each do |diff|
paths.add diff.old_path
paths.add diff.new_path
end
paths.to_a
end
end
Loading