diff --git a/repos.json b/repos.json index fe948954..83d5d168 100644 --- a/repos.json +++ b/repos.json @@ -11,7 +11,7 @@ { "language": "elixir", "repo": "googleapis/elixir-google-api"}, - { "language": "go", "repo": "google/go-genproto"}, + { "language": "go", "repo": "googleapis/go-genproto"}, { "language": "go", "repo": "googleapis/gax-go"}, { "language": "go", "repo": "googleapis/google-api-go-client"}, { "language": "go", "repo": "googleapis/google-cloud-go-testing"}, diff --git a/src/users.ts b/src/users.ts index 4a558233..f28a9075 100644 --- a/src/users.ts +++ b/src/users.ts @@ -65,18 +65,17 @@ export async function reconcileTeams() { } export async function reconcileRepos() { - const promises = new Array>(); const teams = await reconcileTeams(); - - users.membership.forEach(m => { - m.repos.forEach(async r => { + console.log(teams.map(x => x.name)); + for (const m of users.membership) { + for (const r of m.repos) { const [o, repo] = r.split('/'); const team = getTeam(m.team, o, teams); const yoshiAdmins = getTeam('yoshi-admins', o, teams); const yoshiTeam = getTeam('yoshi', o, teams); if (!team) { - throw new Error(`Unable to find team '${m.team}`); + throw new Error(`Unable to find team '${m.team}'`); } // Add the language specific team @@ -110,9 +109,8 @@ export async function reconcileRepos() { .catch(e => { console.error(`Error adding ${r} to 'yoshi'.`); }); - }); - }); - // await Promise.all(promises); + } + } } function getTeam(team: string, org: string, teams: Team[]) { diff --git a/users.json b/users.json index 50db705b..9a12f0de 100644 --- a/users.json +++ b/users.json @@ -367,7 +367,7 @@ "davidcavazos" ], "repos": [ - "google/go-genproto", + "googleapis/go-genproto", "googleapis/gax-go", "googleapis/google-api-go-client", "googleapis/google-cloud-go-testing",