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

Method hasWriteAccess

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

Source from the content-addressed store, hash-verified

169 }
170
171 async hasWriteAccess() {
172 try {
173 const result: ForgejoRepository = await this.request(this.repoURL);
174 // update config repoOwner to avoid case sensitivity issues with Forgejo
175 this.repoOwner = result.owner.login;
176 return result.permissions.push;
177 } catch (error) {
178 console.error('Problem fetching repo data from Forgejo');
179 throw error;
180 }
181 }
182
183 reset() {
184 // no op

Callers 1

authenticateMethod · 0.45

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected