app/controllers/overlay/github_controller.rb in overlay-1.0.4 vs app/controllers/overlay/github_controller.rb in overlay-1.0.5
- old
+ new
@@ -6,13 +6,14 @@
render nothing: true
Overlay.configuration.repositories.each do |repo_config|
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 "Enqueueing GithubJob for repo: #{repo_config[:repo]} and branch: #{repo_config[:branch] || 'master'}"
- SuckerPunch::Queue[:github_queue].async.perform repo_config
+ GithubJob.new.async.perform repo_config
end
end
end
end
end