From aaa499944c103908a5a7be883e9d84f656bfd458 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Thu, 16 May 2024 16:13:03 -0700 Subject: [PATCH] Include base commit in changes included by a React sync --- scripts/sync-react.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/sync-react.js b/scripts/sync-react.js index 34f4878709893..3357e9cfec8fe 100644 --- a/scripts/sync-react.js +++ b/scripts/sync-react.js @@ -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)"