Unified · Split
| @@ -165,7 +165,7 @@ class DocsCLI < Thor · 164 unmodified lines | ||
| 165 | 165 | option :amend, type: :boolean |
| 166 | 166 | def commit(name) |
| 167 | 167 | doc = Docs.find(name, false) |
| 168 | − message = options[:message] || "Update #{doc.name} documentation (#{doc.versions.map(&:release).join(', ')})" | |
| 168 | + message = options[:message] || "Update #{doc.name} documentation (#{doc.versions.first.release})" | |
| 169 | 169 | amend = " --amend" if options[:amend] |
| 170 | 170 | system("git add assets/ *#{name}*") && system("git commit -m '#{message}'#{amend}") |
| 171 | 171 | rescue Docs::DocNotFound => error |