mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
load repo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user