app/controllers/overlay/github_controller.rb in overlay-1.0.1 vs app/controllers/overlay/github_controller.rb in overlay-1.0.2
- old
+ new
@@ -3,14 +3,17 @@
module Overlay
class GithubController < ApplicationController
def update
render nothing: true
+ logger.info "Received update post for repo: #{params[:repository]} and ref: #{params[:ref]}"
Overlay.configuration.repositories.each do |repo_config|
+ logger.info "Processing config for repo: #{repo_config[:repo]} and branch: #{repo_config[:branch] || 'master'}"
next unless repo_config.class == GithubRepo
branch = repo_config[:branch] || 'master'
if (params[:repository] && params[:ref])
if (params[:repository][:name] == repo_config[:repo]) && (params[:ref] == "refs/heads/#{branch}")
+ logger.info "Processing overlay for repo: #{repo_config[:repo]} and branch: #{repo_config[:branch] || 'master'}"
Overlay::Github.process_overlays
end
end
end
end