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

Function github

github-actions/branch-manager/lib/main.ts:133–139  ·  view source on GitHub ↗

Get the shared instance of Octokit, first creating the instance if necessary.

()

Source from the content-addressed store, hash-verified

131let _github: Octokit | null = null;
132/** Get the shared instance of Octokit, first creating the instance if necessary. */
133async function github() {
134 if (_github === null) {
135 const token = await getAuthTokenFor(ANGULAR_ROBOT);
136 _github = new Octokit({auth: token});
137 }
138 return _github;
139}
140
141try {
142 await run().catch((e: Error) => {

Callers 2

runFunction · 0.85

Calls 1

getAuthTokenForFunction · 0.85

Tested by

no test coverage detected