Get the shared instance of Octokit, first creating the instance if necessary.
()
| 131 | let _github: Octokit | null = null; |
| 132 | /** Get the shared instance of Octokit, first creating the instance if necessary. */ |
| 133 | async 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 | |
| 141 | try { |
| 142 | await run().catch((e: Error) => { |
no test coverage detected