2020-08-13 23:38:32 +08:00
|
|
|
class Ci::BaseController < ApplicationController
|
|
|
|
|
before_action :require_login
|
2020-08-20 18:37:53 +08:00
|
|
|
|
|
|
|
|
def load_repo
|
|
|
|
|
namespace = params[:owner]
|
|
|
|
|
id = params[:repo] || params[:id]
|
|
|
|
|
|
|
|
|
|
@user, @repo = Ci::Repo.find_with_namespace(namespace, id)
|
|
|
|
|
end
|
2020-08-13 23:38:32 +08:00
|
|
|
end
|