From 6c063d17f531ae299745c431dcccb306081f9f94 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 17 Apr 2017 01:13:51 -0700 Subject: Render git tags --- lib/render-msg.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/render-msg.js b/lib/render-msg.js index b156820..407a963 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -431,6 +431,15 @@ RenderMsg.prototype.gitUpdate = function (cb) { self.linkify(String(commit.title)), self.gitCommitBody(commit.body) ) + })) : '', + Array.isArray(self.c.tags) ? + h('ul', self.c.tags.map(function (tag) { + return h('li', + h('code', String(tag.sha1).substr(0, 8)), ' ', + 'tagged ', String(tag.type), ' ', + h('code', String(tag.object).substr(0, 8)), ' ', + String(tag.tag) + ) })) : '' ), cb) }) -- cgit v1.2.3