         attachments: [
           %{
             title: "New version published for all users on #{env}.",
-            text:  "Version `#{ver}`",
+            text:  "Version #{version_link(ver)}",
             color: "good",
           }
         ]

        attachments: [
          %{
            title: "New version published for all users on #{env}.",
            text:  "Version `#{ver}`",
            color: "good",
          },
          %{
            title: "Rollback",
            text: "Rollback version `#{ver}` to `#{previous}` on #{env}?",
            color: "warning",
            callback_id: "publish:webapp",
            actions: [

      _             -> ""
    end
  end

  def version_link(ver) do
    nice = String.slice(ver, 0, 7)
    "<https://github.com/ello/webapp/commit/#{ver}|#{nice}>"
  end
end
