From a78e2a4a25bd4a18f84886ec05fabece93ec18d8 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 10 Sep 2017 11:05:26 -0400 Subject: [PATCH] Tweak thor docs:commit command --- lib/tasks/docs.thor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/docs.thor b/lib/tasks/docs.thor index 3cdd127b..a312d714 100644 --- a/lib/tasks/docs.thor +++ b/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