Commits

Yuya Nishihara  committed 77aa222

made link anchor short

  • Participants
  • Parent commits 1974217

Comments (0)

Files changed (1)

File lib/tasks/import_kagemai_reports.rake

 
     def self.reformat_description(kagemai_proj_id, report)
       if KAGEMAI_URL
-        encode(report.first['body']) + %Q{\n\n"Kagemai:#{kagemai_proj_id}:#{report.id}":#{KAGEMAI_URL}?action=view_report&id=#{report.id}&project=#{kagemai_proj_id}}
+        link_url = "#{KAGEMAI_URL}?action=view_report&id=#{report.id}&project=#{kagemai_proj_id}"
+        encode(report.first['body']) + %Q{\n\n"Kagemai:#{'%03d' % report.id}":#{link_url}}
       else
         encode(report.first['body'])
       end