We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ce7e75 commit c7e26a7Copy full SHA for c7e26a7
lib/codeclimate_diff/runner.rb
@@ -11,7 +11,7 @@ module CodeclimateDiff
11
class Runner
12
def self.calculate_changed_filenames(pattern)
13
extra_grep_filter = pattern ? " | grep '#{pattern}'" : ""
14
- branch_name = CodeclimateDiff.configuration["gitlab"]["main_branch_name"]
+ branch_name = CodeclimateDiff.configuration["main_branch_name"]
15
files_changed_str = `git diff --name-only #{branch_name} | grep --invert-match spec/ | grep --extended-regexp '.js$|.rb$'#{extra_grep_filter}`
16
puts "Files changed on branch: #{files_changed_str}"
17
0 commit comments