Skip to content

Commit

Permalink
Include base commit in changes included by a React sync
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed May 16, 2024
1 parent c045f0f commit 21dc11b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/sync-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ async function getChangelogFromGitHub(baseSha, newSha) {
}
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) {
const title = commit.message.split('\n')[0] || ''
// The "title" looks like "[Fiber][Float] preinitialized stylesheets should support integrity option (#26881)"
Expand Down

0 comments on commit 21dc11b

Please sign in to comment.