Skip to content

Commit

Permalink
Include number of reviewers in heading
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Nov 27, 2024
1 parent 43eb865 commit da99109
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/itp-prs/reviewers.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</style>
</head>
<body>
<h1>ITP reviewers</h1>
<h1>ITP reviewers <span id="reviewer-count"></span></h1>
<div id="container">Loading...</div>

<script type="module" src="reviewers.mjs"></script>
Expand All @@ -40,4 +40,4 @@ <h3 class="username"></h3>
</div>
</template>
</body>
</html>
</html>
1 change: 1 addition & 0 deletions docs/itp-prs/reviewers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async function onLoad() {
.sort(([_l, l], [_r, r]) => {
return r.latestCommentTime - l.latestCommentTime;
});
document.querySelector("#reviewer-count").innerText = `(${sortedReviewers.length})`;
for (const [userName, reviewerDetails] of sortedReviewers) {
const daysSinceLastReview = Math.abs(Math.floor((reviewerDetails.latestCommentTime - new Date()) / (1000 * 60 * 60 * 24)));
const card = document.querySelector("template.reviewer-card").content.cloneNode(true);
Expand Down

0 comments on commit da99109

Please sign in to comment.