File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,24 +110,26 @@ const handlePullRequest = (repoElementId, myPullRequests) => {
110110 <p>${ data . length } commits</p>
111111 <p>latest: <a href=${ commitUrl } >${ commitMessage } </a> by ${ commitAuthor } ${ commitTimeSince } </p>
112112 </div>
113- `
114- } )
115- } )
116-
117- myPullRequests
118- . map ( pullRequest => pullRequest . review_comments_url )
119- . forEach ( reviewCommentUrl => {
120- fetch ( reviewCommentUrl + "?per_page=100" , options )
121- . then ( res => res . json ( ) )
122- . then ( data => {
123- const repo = document . getElementById ( repoElementId ) ;
124- repo . innerHTML += `
125- <div class="comments">
126- <span>received ${ data . length } comments</span>
127- </div>
128113 `
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+ } )
129130 } )
130131 } )
132+
131133}
132134
133135function timeSince ( date ) {
You can’t perform that action at this time.
0 commit comments