fixed reposyncer job_type

This commit is contained in:
“xxq250” 2022-08-04 16:24:19 +08:00
parent ebe8df8221
commit 4941e08684
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class ObRepositorySyncsController < ApplicationController
job.github_branch = "#{params[:github_branch]}"
job.gitee_branch = "#{params[:gitee_branch]}"
job.gitlink_branch = "#{params[:gitlink_branch]}"
job.job_type = "#{params[:type]}"
job.job_type = "#{params[:job_type]}"
job.base = "#{params[:base]}"
job.job_id = job_id
job.save

View File

@ -58,7 +58,7 @@ class ObRepositorySync::ApiService < ApplicationService
"github_branch": "#{params[:github_branch]}",
"gitee_branch": "#{params[:gitee_branch]}",
"gitlink_branch": "#{params[:gitlink_branch]}",
"type": "#{params[:type]}",
"type": "#{params[:job_type]}",
"base": "#{params[:base]}"
}
url = URI("#{domain}/cerobot/projects/#{@project_name}/jobs")