@@ -222,16 +222,19 @@ async function getChangelogFromGitHub(baseSha, newSha) {
...
@@ -222,16 +222,19 @@ async function getChangelogFromGitHub(baseSha, newSha) {
}
}
for(const{commit,sha}ofcommits){
for(const{commit,sha}ofcommits){
consttitle=commit.message.split('\n')[0]||''
consttitle=commit.message.split('\n')[0]||''
// The "title" looks like "[Fiber][Float] preinitialized stylesheets should support integrity option (#26881)"
constmatch=
constmatch=/\(#([0-9]+)\)$/.exec(title)
// The "title" looks like "[Fiber][Float] preinitialized stylesheets should support integrity option (#26881)"
/\(#([0-9]+)\)$/.exec(title)??
// 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)