Unverified Commit e7065a95 authored by Sebastian Silbermann's avatar Sebastian Silbermann Committed by GitHub

Include base commit in changes included by a React sync (#65868)

Include the base commit in the generated changelog for React syncs.
parent af49a5b5
...@@ -195,7 +195,10 @@ async function getChangelogFromGitHub(baseSha, newSha) { ...@@ -195,7 +195,10 @@ async function getChangelogFromGitHub(baseSha, newSha) {
} }
const data = await response.json() const data = await response.json()
const { commits } = data const { base_commit, commits } = data
if (currentPage === 0) {
commits.unshift(base_commit)
}
for (const { commit, sha } of commits) { for (const { commit, sha } of commits) {
const title = commit.message.split('\n')[0] || '' const title = commit.message.split('\n')[0] || ''
// The "title" looks like "[Fiber][Float] preinitialized stylesheets should support integrity option (#26881)" // The "title" looks like "[Fiber][Float] preinitialized stylesheets should support integrity option (#26881)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment