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

Method hasWriteAccess

packages/decap-cms-backend-gitea/src/API.ts:145–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 }
144
145 async hasWriteAccess() {
146 try {
147 const result: GiteaRepository = await this.request(this.repoURL);
148 // update config repoOwner to avoid case sensitivity issues with Gitea
149 this.repoOwner = result.owner.login;
150 return result.permissions.push;
151 } catch (error) {
152 console.error('Problem fetching repo data from Gitea');
153 throw error;
154 }
155 }
156
157 reset() {
158 // no op

Callers 4

authenticateMethod · 0.45
authenticateMethod · 0.45
API.spec.jsFile · 0.45
authenticateMethod · 0.45

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected