Browse Source

load repo

pull/347/head
kingChan 2 years ago
parent
commit
3b60fee922
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/controllers/api/v1/sonarqubes_controller.rb

+ 2
- 2
app/controllers/api/v1/sonarqubes_controller.rb View File

@@ -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…
Cancel
Save