Skip to content
Snippets Groups Projects
Commit 19d9fa5a authored by Martin Lowe's avatar Martin Lowe :no_entry:
Browse files

Merge branch 'malowe/master/57' into 'master'

Iss. #57 - Add check to skip validation if there are no new commits

See merge request !83
parents 5c317d45 4321b1f8
No related branches found
No related tags found
1 merge request!83Iss. #57 - Add check to skip validation if there are no new commits
Pipeline #5537 passed
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment