diff --git a/src/main/rb/eca.rb b/src/main/rb/eca.rb index fb67dff8905405b28f93ac802f99e0919e5ea81a..3b152318b1daf1c5232f4197c2fb0c62c24bcb54 100644 --- a/src/main/rb/eca.rb +++ b/src/main/rb/eca.rb @@ -100,6 +100,12 @@ else end diff_git_commits = diff_git_commits_raw.split(/\n/) +## Check if the are commits to validate. If there are none we can end processing here +if (diff_git_commits.empty?) then + puts "There are no commits to validate for current push, skipping validation step" + exit 0 +end + processed_git_data = [] diff_git_commits.each do |commit| processed_git_data.push(process_commit(commit))