You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/sync-react.js
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -211,8 +211,13 @@ async function getChangelogFromGitHub(baseSha, newSha) {
211
211
}
212
212
for(const{ commit, sha }ofcommits){
213
213
consttitle=commit.message.split('\n')[0]||''
214
-
// The "title" looks like "[Fiber][Float] preinitialized stylesheets should support integrity option (#26881)"
215
-
constmatch=/\(#([0-9]+)\)$/.exec(title)
214
+
constmatch=
215
+
// The "title" looks like "[Fiber][Float] preinitialized stylesheets should support integrity option (#26881)"
216
+
/\(#([0-9]+)\)$/.exec(title)??
217
+
// or contains "Pull Request resolved: https://github.com/facebook/react/pull/12345" in the body if merged via ghstack (e.g. https://github.com/facebook/react/commit/0a0a5c02f138b37e93d5d93341b494d0f5d52373)
0 commit comments