Class: GithubOverlays::WebhooksController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- GithubOverlays::WebhooksController
- Defined in:
- app/controllers/github_overlays/webhooks_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#update ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/github_overlays/webhooks_controller.rb', line 5 def update GithubOverlays.configuration.repositories.each do |repo_config| branch = repo_config[:branch] || 'master' if (params[:repository][:name] == repo_config[:repo]) && (params[:webhook][:ref] == "refs/heads/#{branch}") GithubOverlays. end end render :nothing => true end |