We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49e384c commit 3370ccfCopy full SHA for 3370ccf
code/script.js
@@ -110,7 +110,23 @@ const handlePullRequest = (repoElementId, myPullRequests) => {
110
<p>${data.length} commits</p>
111
<p>latest: <a href=${commitUrl}>${commitMessage}</a> by ${commitAuthor} ${commitTimeSince}</p>
112
</div>
113
- `
+ `
114
+
115
116
+ myPullRequests
117
+ .map(pullRequest => pullRequest.review_comments_url)
118
+ .forEach(reviewCommentUrl => {
119
+ fetch(reviewCommentUrl + "?per_page=100", options)
120
+ .then(res => res.json())
121
+ .then(data => {
122
+ const repo = document.getElementById(repoElementId);
123
+ repo.innerHTML += `
124
+ <div class="comments">
125
+ <span>received ${data.length} comments</span>
126
+ </div>
127
128
+ })
129
130
})
131
132
0 commit comments