@@ -112,19 +112,18 @@ jobs:
112112 const content = Buffer.from(codeownersData.content, 'base64').toString('utf-8');
113113 const lines = content.split('\n');
114114 for (const line of lines) {
115- const commentIdx = line.indexOf('#');
116- const cleanLine = (commentIdx !== -1 ? line.substring(0, commentIdx) : line).trim();
117- if (!cleanLine) continue;
118-
119- const parts = cleanLine.split(/\s+/);
120- const pattern = parts[0];
121- if (pattern === '*') {
122- const owners = parts.slice(1);
123- defaultReviewers = owners
124- .filter(p => p.startsWith('@') && !p.includes('/'))
125- .map(p => p.substring(1))
126- .filter(login => login !== author);
127- break;
115+ const trimmed = line.trim();
116+ if (trimmed.startsWith('#')) {
117+ const commentContent = trimmed.substring(1).trim();
118+ if (commentContent.startsWith('team_members:')) {
119+ const listPart = commentContent.substring('team_members:'.length).trim();
120+ const parts = listPart.split(/\s+/);
121+ defaultReviewers = parts
122+ .filter(p => p.startsWith('@'))
123+ .map(p => p.substring(1))
124+ .filter(login => login !== author);
125+ break;
126+ }
128127 }
129128 }
130129 } catch (err) {
0 commit comments