@@ -18,7 +18,7 @@ const octokit = new Octokit({ auth: githubToken });
18
18
async function getTeam ( repository , prNumber ) {
19
19
try {
20
20
const { data : prData } = await octokit . pulls . get ( {
21
- owner : 'MetaMask ' ,
21
+ owner : 'consensys-test ' ,
22
22
repo : repository ,
23
23
pull_number : prNumber [ 1 ] ,
24
24
} ) ;
@@ -46,7 +46,7 @@ async function getTeam(repository, prNumber) {
46
46
// Step 3: Match the PR author's username to a team
47
47
const team = teamsJson [ author ] ;
48
48
49
- // Step 4: Return the team name or 'Unknown' if not found
49
+ // Step 4: Return the team name or 'Unknown' if not found.
50
50
return team || 'Unknown' ;
51
51
52
52
} catch ( error ) {
@@ -71,7 +71,7 @@ async function filterCommitsByTeam(platform, branchA, branchB) {
71
71
repository = 'metamask-mobile' ;
72
72
break ;
73
73
case 'extension' :
74
- repository = 'metamask-extension' ;
74
+ repository = 'metamask-extension-test-workflow2 ' ;
75
75
break ;
76
76
default :
77
77
repository = 'metamask-mobile' ;
@@ -107,10 +107,10 @@ async function filterCommitsByTeam(platform, branchA, branchB) {
107
107
}
108
108
109
109
// 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) ;
111
111
if ( prMatch ) {
112
112
const prLink = prMatch
113
- ? `https://github.com/MetaMask /${ repository } /pull/${ prMatch [ 1 ] } `
113
+ ? `https://github.com/consensys-test /${ repository } /pull/${ prMatch [ 1 ] } `
114
114
: '' ;
115
115
const team = await getTeam ( repository , prMatch ) ;
116
116
0 commit comments