class Api::RepositoryController < ApplicationController
  skip_before_filter :verify_authenticity_token

  def create
    model = RepoMessage.new(action: 'Test', body: params.to_s)
    model.save!
    render text: 'OK'
  end
end

class Api::RepositoryController < ApplicationController
  skip_before_filter :verify_authenticity_token

  def create
    model = RepoMessage.new(action: request.headers['HTTP_X_GitHub_Event'], body: params.to_s)
    model.save!
    render text: 'OK'
  end
end

Add GitHub event to repository save
Add GitHub event to repository save
