Skip to content

Commit 145dcf8

Browse files
committed
Import existing docs-maintainers team (remove after deploy)
1 parent f637d08 commit 145dcf8

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

src/github.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,19 @@ sortedRoles.forEach((role: Role) => {
2626
}
2727
}
2828

29-
teams[role.github.team] = new github.Team(role.github.team, {
30-
name: role.github.team,
31-
description: role.description + ' \n(Managed by github.com/modelcontextprotocol/access)',
32-
privacy: 'closed',
33-
parentTeamId,
34-
});
29+
// TODO: Remove this import after first successful deploy
30+
const importId = role.github.team === 'docs-maintainers' ? '14435867' : undefined;
31+
32+
teams[role.github.team] = new github.Team(
33+
role.github.team,
34+
{
35+
name: role.github.team,
36+
description: role.description + ' \n(Managed by github.com/modelcontextprotocol/access)',
37+
privacy: 'closed',
38+
parentTeamId,
39+
},
40+
importId ? { import: importId } : undefined
41+
);
3542
});
3643

3744
// Create team memberships

0 commit comments

Comments
 (0)