()
| 132 | static DEFAULT_COMMIT_MESSAGE = 'Automatically generated by Static CMS'; |
| 133 | |
| 134 | user(): Promise<{ full_name: string; login: string; email: string; avatar_url: string }> { |
| 135 | if (!this._userPromise) { |
| 136 | this._userPromise = this.getUser(); |
| 137 | } |
| 138 | return this._userPromise; |
| 139 | } |
| 140 | |
| 141 | getUser() { |
| 142 | return this.request('/user') as Promise<GiteaUser>; |
no test coverage detected