@mui/internal-code-infra 0.0.4-canary.24 → 0.0.4-canary.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-code-infra",
3
- "version": "0.0.4-canary.24",
3
+ "version": "0.0.4-canary.25",
4
4
  "author": "MUI Team",
5
5
  "description": "Infra scripts and configs to be used across MUI repos.",
6
6
  "license": "MIT",
@@ -167,7 +167,7 @@
167
167
  "publishConfig": {
168
168
  "access": "public"
169
169
  },
170
- "gitSha": "78ca9de56a749276d6b059f5419d1e56bd81b6ad",
170
+ "gitSha": "098c201527c07ea64a70c16783bdba5c402dd057",
171
171
  "scripts": {
172
172
  "build": "tsgo -p tsconfig.build.json",
173
173
  "typescript": "tsgo -noEmit",
@@ -93,8 +93,12 @@ async function fetchCommitsRest({ octokit, repo, lastRelease, release, org = 'mu
93
93
  }
94
94
 
95
95
  const promises = results.map(async (commit) => {
96
- const prMatch = commit.commit.message.match(/#(\d+)/);
97
- if (prMatch === null) {
96
+ const matches = [...commit.commit.message.matchAll(/#(\d+)/g)];
97
+ // The PR number is always the last match.
98
+ // Sometimes the PR titles include an issue number like this:
99
+ // [tag] PR title (#00001) (#00002)
100
+ const prMatch = matches.at(-1);
101
+ if (!prMatch) {
98
102
  return null;
99
103
  }
100
104