load repo
This commit is contained in:
parent
b6746d5c49
commit
3b60fee922
|
@ -1,5 +1,5 @@
|
|||
class Api::V1::SonarqubesController < Api::V1::BaseController
|
||||
#before_action :load_repository
|
||||
before_action :load_repository
|
||||
def sonar_initialize
|
||||
gitea_params = { has_actions: params[:has_actions] == 'true' ? true :false }
|
||||
gitea_setting = Gitea::Repository::UpdateService.call(@owner, @project.identifier, gitea_params)
|
||||
|
@ -116,5 +116,5 @@ class Api::V1::SonarqubesController < Api::V1::BaseController
|
|||
}
|
||||
data = Sonarqube.client.get('/api/measures/component', query: params_data)
|
||||
render_ok data
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue