@@ -18,7 +18,7 @@ const octokit = new Octokit({ auth: githubToken });
1818async function getTeam ( repository , prNumber ) {
1919 try {
2020 const { data : prData } = await octokit . pulls . get ( {
21- owner : 'MetaMask ' ,
21+ owner : 'consensys-test ' ,
2222 repo : repository ,
2323 pull_number : prNumber [ 1 ] ,
2424 } ) ;
@@ -46,7 +46,7 @@ async function getTeam(repository, prNumber) {
4646 // Step 3: Match the PR author's username to a team
4747 const team = teamsJson [ author ] ;
4848
49- // Step 4: Return the team name or 'Unknown' if not found
49+ // Step 4: Return the team name or 'Unknown' if not found.
5050 return team || 'Unknown' ;
5151
5252 } catch ( error ) {
@@ -71,7 +71,7 @@ async function filterCommitsByTeam(platform, branchA, branchB) {
7171 repository = 'metamask-mobile' ;
7272 break ;
7373 case 'extension' :
74- repository = 'metamask-extension' ;
74+ repository = 'metamask-extension-test-workflow2 ' ;
7575 break ;
7676 default :
7777 repository = 'metamask-mobile' ;
@@ -107,10 +107,10 @@ async function filterCommitsByTeam(platform, branchA, branchB) {
107107 }
108108
109109 // Extract PR number from the commit message using regex
110- const prMatch = message . match ( / \( # ( \d { 4 , 5 } ) \) $ / u) ;
110+ const prMatch = message . match ( / \( # ( \d { 1 , 5 } ) \) $ / u) ;
111111 if ( prMatch ) {
112112 const prLink = prMatch
113- ? `https://github.com/MetaMask /${ repository } /pull/${ prMatch [ 1 ] } `
113+ ? `https://github.com/consensys-test /${ repository } /pull/${ prMatch [ 1 ] } `
114114 : '' ;
115115 const team = await getTeam ( repository , prMatch ) ;
116116
0 commit comments