forked from Trustie/forgeplus
Merge pull request 'load repo' (#5) from sonar_pm into docker_file
This commit is contained in:
commit
db322b571a
|
@ -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