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) {
204
204
async function getChangelogFromGitHub ( baseSha , newSha ) {
205
205
const pageSize = 50
206
206
let changelog = [ ]
207
- for ( let currentPage = 0 ; ; currentPage ++ ) {
207
+ for ( let currentPage = 1 ; ; currentPage ++ ) {
208
208
const url = `https://api.github.com/repos/facebook/react/compare/${ baseSha } ...${ newSha } ?per_page=${ pageSize } &page=${ currentPage } `
209
209
const headers = { }
210
210
// GITHUB_TOKEN is optional but helps in case of rate limiting during development.
@@ -221,10 +221,7 @@ async function getChangelogFromGitHub(baseSha, newSha) {
221
221
}
222
222
const data = await response . json ( )
223
223
224
- const { base_commit, commits } = data
225
- if ( currentPage === 0 ) {
226
- commits . unshift ( base_commit )
227
- }
224
+ const { commits } = data
228
225
for ( const { commit, sha } of commits ) {
229
226
const title = commit . message . split ( '\n' ) [ 0 ] || ''
230
227
const match =
You can’t perform that action at this time.
0 commit comments