File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ function extractInfoFromReactVersion(reactVersion) {
204204async function getChangelogFromGitHub ( baseSha , newSha ) {
205205 const pageSize = 50
206206 let changelog = [ ]
207- for ( let currentPage = 0 ; ; currentPage ++ ) {
207+ for ( let currentPage = 1 ; ; currentPage ++ ) {
208208 const url = `https://api.github.com/repos/facebook/react/compare/${ baseSha } ...${ newSha } ?per_page=${ pageSize } &page=${ currentPage } `
209209 const headers = { }
210210 // GITHUB_TOKEN is optional but helps in case of rate limiting during development.
@@ -221,10 +221,7 @@ async function getChangelogFromGitHub(baseSha, newSha) {
221221 }
222222 const data = await response . json ( )
223223
224- const { base_commit, commits } = data
225- if ( currentPage === 0 ) {
226- commits . unshift ( base_commit )
227- }
224+ const { commits } = data
228225 for ( const { commit, sha } of commits ) {
229226 const title = commit . message . split ( '\n' ) [ 0 ] || ''
230227 const match =
You can’t perform that action at this time.
0 commit comments