git ssb

1+

punkmonk.termux / mvd



forked from ev / mvd

Commit d3be1071450e656388c714506e18841e282dbe81

render commits in git-update messages

Ev Bogue committed on 7/29/2018, 5:13:42 PM
Parent: ff143e8934ce10479fb7f2a1a8a3b5eaea7447cd

Files changed

render.jschanged
render.jsView
@@ -75,9 +75,17 @@
7575 }
7676 })
7777 )
7878 message.appendChild(cloneurl)
79- //message.appendChild(h('pre', tools.rawJSON(msg.value)))
79+
80+ var commits = h('ul')
81+
82+ msg.value.content.commits.map(function (commit) {
83+ commits.appendChild(h('li', h('code', commit.sha1), ' - ', commit.title))
84+ })
85+
86+ message.appendChild(commits)
87+
8088 return message
8189
8290 }
8391 else if (msg.value.content.type == 'git-repo') {

Built with git-ssb-web