Skip to content

Commit

Permalink
feat: add values repo to viewer team
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderMatt committed Sep 29, 2023
1 parent e0c4778 commit 7ba1a57
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tasks/gitea/gitea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ export default async function main(): Promise<void> {
// create main org repo: otomi/values
await upsertRepo(existingTeams, existingRepos, orgApi, repoApi, repoOption)

// add repo: otomi/values to the team: otomi-viewer
await doApiCall(
errors,
`Adding repo values to team otomi-viewer`,
() => repoApi.repoAddTeam(orgName, 'values', 'otomi-viewer'),
422,
)

if (!hasArgo) return

// then create initial gitops repo for teams
Expand Down

0 comments on commit 7ba1a57

Please sign in to comment.