()
| 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>; |
no test coverage detected