Commit d3be1071450e656388c714506e18841e282dbe81
render commits in git-update messages
Ev Bogue committed on 7/29/2018, 5:13:42 PMParent: ff143e8934ce10479fb7f2a1a8a3b5eaea7447cd
Files changed
render.js | changed |
render.js | ||
---|---|---|
@@ -75,9 +75,17 @@ | ||
75 | 75 | } |
76 | 76 | }) |
77 | 77 | ) |
78 | 78 | 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 | + | |
80 | 88 | return message |
81 | 89 | |
82 | 90 | } |
83 | 91 | else if (msg.value.content.type == 'git-repo') { |
Built with git-ssb-web