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

Class GithubClient

ng-dev/utils/git/github.ts:94–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93/** A Github client for interacting with the Github APIs. */
94export class GithubClient {
95 /** The octokit instance actually performing API requests. */
96 protected _octokit: Octokit = new Octokit({
97 // Move all default octokit logging into debug. We prefer handle all of the logging exposed
98 // to user's from Github ourselves.
99 log: {
100 debug: Log.debug,
101 error: Log.debug,
102 info: Log.debug,
103 warn: Log.debug,
104 },
105 ...this._octokitOptions,
106 });
107
108 readonly pulls: Octokit['pulls'] = createRetryProxy(this._octokit.pulls);
109 readonly orgs: Octokit['orgs'] = createRetryProxy(this._octokit.orgs);
110 readonly repos: Octokit['repos'] = createRetryProxy(this._octokit.repos);
111 readonly issues: Octokit['issues'] = createRetryProxy(this._octokit.issues);
112 readonly git: Octokit['git'] = createRetryProxy(this._octokit.git);
113 readonly rateLimit: Octokit['rateLimit'] = createRetryProxy(this._octokit.rateLimit);
114 readonly teams: Octokit['teams'] = createRetryProxy(this._octokit.teams);
115 readonly search: Octokit['search'] = createRetryProxy(this._octokit.search);
116 readonly rest: Octokit['rest'] = createRetryProxy(this._octokit.rest);
117 readonly paginate: Octokit['paginate'] = createRetryProxy(this._octokit.paginate);
118 readonly checks: Octokit['checks'] = createRetryProxy(this._octokit.checks);
119 readonly users: Octokit['users'] = createRetryProxy(this._octokit.users);
120
121 constructor(private _octokitOptions?: OctokitOptions) {}
122}
123
124/**
125 * Extension of the `GithubClient` that provides utilities which are specific

Callers

nothing calls this directly

Calls 1

createRetryProxyFunction · 0.85

Tested by

no test coverage detected