Github issues迁移,title 长度处理

This commit is contained in:
xxq250 2023-12-18 10:00:01 +08:00
parent 9979ae6d3a
commit 7b1d0e21ee
1 changed files with 3 additions and 1 deletions

View File

@ -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 => [],