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