MCPcopy Create free account
hub / github.com/decaporg/decap-cms / user

Method user

packages/decap-cms-backend-forgejo/src/API.ts:160–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 static DEFAULT_COMMIT_MESSAGE = 'Automatically generated by Static CMS';
159
160 user(): Promise<{ full_name: string; login: string; avatar_url: string; email: string }> {
161 if (!this._userPromise) {
162 this._userPromise = this.getUser();
163 }
164 return this._userPromise;
165 }
166
167 getUser() {
168 return this.request('/user') as Promise<ForgejoUser>;

Callers 2

statusMethod · 0.45
authenticateMethod · 0.45

Calls 1

getUserMethod · 0.95

Tested by

no test coverage detected