MCPcopy Create free account
hub / github.com/angular/dev-infra / main

Function main

github-actions/org-file-sync/lib/main.ts:114–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114async function main() {
115 const github = new Octokit({auth: await getAuthTokenFor(ANGULAR_ROBOT)});
116 try {
117 const goldenFiles: Files = await getFilesForRepo(github, context.repo.repo);
118
119 for (const repo of reposToSync) {
120 core.info(`~~~~~~Updating "${repo}" repo~~~~~~~`);
121 await updateRepoWithFiles(github, repo, goldenFiles);
122 }
123 } finally {
124 await revokeActiveInstallationToken(github);
125 }
126}
127
128main().catch((err) => {
129 console.error(err);

Callers 1

main.tsFile · 0.70

Calls 4

getAuthTokenForFunction · 0.85
getFilesForRepoFunction · 0.85
updateRepoWithFilesFunction · 0.85

Tested by

no test coverage detected