Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
INFRA-2867:Fix for input reference for release
Signed-off-by: Pavel Dvorkin <[email protected]>
  • Loading branch information
XxdpavelxX committed Aug 21, 2025
commit 27deee7ae4ceb9fa505cda134029bbd8cc38a75a
10 changes: 5 additions & 5 deletions .github/scripts/generate-rc-commits.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const octokit = new Octokit({ auth: githubToken });
async function getTeam(repository, prNumber) {
try {
const { data: prData } = await octokit.pulls.get({
owner: 'MetaMask',
owner: 'consensys-test',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Inconsistent PR Data and Team Assignments

The script was updated to use consensys-test for fetching PR data and generating PR links, but the teams.json URL still points to MetaMask. This creates an inconsistency where PRs are pulled from a test organization, but team data is sourced from the production MetaMask-planning repo, leading to incorrect team assignments.

Additional Locations (1)

Fix in Cursor Fix in Web

repo: repository,
pull_number: prNumber[1],
});
Expand Down Expand Up @@ -46,7 +46,7 @@ async function getTeam(repository, prNumber) {
// Step 3: Match the PR author's username to a team
const team = teamsJson[author];

// Step 4: Return the team name or 'Unknown' if not found
// Step 4: Return the team name or 'Unknown' if not found.
return team || 'Unknown';

} catch (error) {
Expand All @@ -71,7 +71,7 @@ async function filterCommitsByTeam(platform, branchA, branchB) {
repository = 'metamask-mobile';
break;
case 'extension':
repository = 'metamask-extension';
repository = 'metamask-extension-test-workflow2';
break;
default:
repository = 'metamask-mobile';
Expand Down Expand Up @@ -107,10 +107,10 @@ async function filterCommitsByTeam(platform, branchA, branchB) {
}

// Extract PR number from the commit message using regex
const prMatch = message.match(/\(#(\d{4,5})\)$/u);
const prMatch = message.match(/\(#(\d{1,5})\)$/u);
if (prMatch) {
const prLink = prMatch
? `https://github.com/MetaMask/${repository}/pull/${prMatch[1]}`
? `https://github.com/consensys-test/${repository}/pull/${prMatch[1]}`
: '';
const team = await getTeam(repository, prMatch);

Expand Down
Loading