Explorar o código

Tweak thor docs:commit command

Thibaut Courouble %!s(int64=8) %!d(string=hai) anos
pai
achega
a78e2a4a25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/tasks/docs.thor

+ 1 - 1
lib/tasks/docs.thor

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