forked from Gitlink/forgeplus
fix 更新创建版本库条件
This commit is contained in:
parent
a1b18c07df
commit
4494cbe3a9
|
|
@ -234,7 +234,9 @@ class RepositoriesController < ApplicationController
|
|||
end
|
||||
|
||||
if sonarqube
|
||||
sonarqube.update(bug_num: 0, loophole: 0, repetition_rate: 0, file_num: file_num)
|
||||
sonarqube.update(bug_num: 0, loophole: 0, repetition_rate: 0, file_num: file_num, created_at: Time.now)
|
||||
sleep 3.seconds
|
||||
sonarqube.update_column(:updated_at, Time.now)
|
||||
else
|
||||
@project.sonarqubes.create!(
|
||||
branch_name: branch['name'],
|
||||
|
|
|
|||
|
|
@ -25,8 +25,7 @@ class Gitea::Repository::CreateService < Gitea::ClientService
|
|||
private
|
||||
|
||||
def request_params
|
||||
create_params = params.merge(readme: "readme")
|
||||
Hash.new.merge(token: token, data: create_params)
|
||||
Hash.new.merge(token: token, data: params)
|
||||
end
|
||||
|
||||
def url
|
||||
|
|
|
|||
Loading…
Reference in New Issue