Skip to content

Commit

Permalink
fix: add PR for source
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Dec 14, 2023
1 parent bb1fcef commit 998f11f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/routes/pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/pr.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<div class="grid-item">
<h2 class="grid-header">Details</h2>
<p class="grid-contents"><b>Author:</b> <a target="_blank" href="https://github.com/{{ primary.pr.user.login }}">@{{ primary.pr.user.login
}}</a> <b>Time:</b> {{ formattedDate primary.pr.merged_at }} <b>Commit: </b> <a target="_blank" href="https://github.com/electron/electron/{{sha primary.pr.base.sha}}">{{sha primary.pr.base.sha}}</a></p>
}}</a> <b>Time:</b> {{ formattedDate primary.pr.merged_at }} <b>PR: </b> <a target="_blank" href="{{primary.pr.html_url}}">#{{
primary.pr.number}}</a></p>
</div>
<div class="grid-item">
<h2 class="grid-header">PR Information</h2>
Expand Down

0 comments on commit 998f11f

Please sign in to comment.