Skip to content

Commit 21dc11b

Browse files
committed
Include base commit in changes included by a React sync
1 parent c045f0f commit 21dc11b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/sync-react.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,10 @@ async function getChangelogFromGitHub(baseSha, newSha) {
195195
}
196196
const data = await response.json()
197197

198-
const { commits } = data
198+
const { base_commit, commits } = data
199+
if (currentPage === 0) {
200+
commits.unshift(base_commit)
201+
}
199202
for (const { commit, sha } of commits) {
200203
const title = commit.message.split('\n')[0] || ''
201204
// The "title" looks like "[Fiber][Float] preinitialized stylesheets should support integrity option (#26881)"

0 commit comments

Comments
 (0)