Github issues迁移,title 长度处理
This commit is contained in:
parent
9979ae6d3a
commit
7b1d0e21ee
|
@ -204,6 +204,8 @@ namespace :batch_add_issues do
|
|||
puts "import_user batch success: phone #{phone} email: #{email}"
|
||||
end
|
||||
|
||||
title = issue['title']
|
||||
title = title[0..190] if title.size > 190
|
||||
issue_params = {
|
||||
:status_id => issue_status,
|
||||
:priority_id => priority,
|
||||
|
@ -211,7 +213,7 @@ namespace :batch_add_issues do
|
|||
# :branch_name,
|
||||
# :start_date,
|
||||
# :due_date,
|
||||
:subject => issue['title'],
|
||||
:subject => title,
|
||||
:description => issue['body'],
|
||||
# :blockchain_token_num,
|
||||
:issue_tag_ids => [],
|
||||
|
|
Loading…
Reference in New Issue