diff --git a/src/routes/pr.js b/src/routes/pr.js index 9c14ba6..06f4893 100644 --- a/src/routes/pr.js +++ b/src/routes/pr.js @@ -18,8 +18,6 @@ const router = new Router(); Handlebars.registerHelper('formattedDate', (date) => new Date(date).toUTCString()); -Handlebars.registerHelper('sha', (commitSha) => commitSha.substr(0, 7)); - Handlebars.registerHelper('markdown', function (content) { return DOMPurify.sanitize(md.render(content)); }); diff --git a/src/views/pr.handlebars b/src/views/pr.handlebars index 75322ad..8d9a019 100644 --- a/src/views/pr.handlebars +++ b/src/views/pr.handlebars @@ -6,7 +6,8 @@
Author: @{{ primary.pr.user.login - }} Time: {{ formattedDate primary.pr.merged_at }} Commit: {{sha primary.pr.base.sha}}
+ }} Time: {{ formattedDate primary.pr.merged_at }} PR: #{{ + primary.pr.number}}