Sha256: f029de3c3130c3e7a3df40cb3702e7bdff4961013ca0fdc0372e12b7e761e023

Contents?: true

Size: 548 Bytes

Versions: 15

Compression:

Stored size: 548 Bytes

Contents

module Overlay
  class GithubController < Overlay::ApplicationController
    def update
      render nothing: true

      Overlay.configuration.repositories.each do |repo_config|
        next unless repo_config.class == GithubRepo
        branch = repo_config.branch

        if (params[:repository] && params[:ref])
          if (params[:repository][:name] == repo_config.repo) && (params[:ref] == "refs/heads/#{branch}")
            Overlay::Github.instance.process_hook(params, repo_config)
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
overlay-2.3.0 app/controllers/overlay/github_controller.rb
overlay-2.2.5 app/controllers/overlay/github_controller.rb
overlay-2.2.4 app/controllers/overlay/github_controller.rb
overlay-2.2.3 app/controllers/overlay/github_controller.rb
overlay-2.2.2 app/controllers/overlay/github_controller.rb
overlay-2.2.1 app/controllers/overlay/github_controller.rb
overlay-2.2.0 app/controllers/overlay/github_controller.rb
overlay-2.1.6 app/controllers/overlay/github_controller.rb
overlay-2.1.5 app/controllers/overlay/github_controller.rb
overlay-2.1.4 app/controllers/overlay/github_controller.rb
overlay-2.1.3 app/controllers/overlay/github_controller.rb
overlay-2.1.2 app/controllers/overlay/github_controller.rb
overlay-2.1.1 app/controllers/overlay/github_controller.rb
overlay-2.1.0 app/controllers/overlay/github_controller.rb
overlay-2.0.0 app/controllers/overlay/github_controller.rb