aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-17 01:13:51 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-17 16:06:17 -0700
commit6c063d17f531ae299745c431dcccb306081f9f94 (patch)
tree8e0788710fb0ed9d0cfbd140f4bb3298a7f5f656 /lib
parent5f4a6f69a08006fe721e19698218e41b2157b5cb (diff)
downloadpatchfoo-6c063d17f531ae299745c431dcccb306081f9f94.tar.gz
patchfoo-6c063d17f531ae299745c431dcccb306081f9f94.zip
Render git tags
Diffstat (limited to 'lib')
-rw-r--r--lib/render-msg.js9
1 files changed, 9 insertions, 0 deletions
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)
})