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

Method createLabel

packages/decap-cms-backend-forgejo/src/API.ts:754–759  ·  view source on GitHub ↗
(name: string, color = '0052cc')

Source from the content-addressed store, hash-verified

752 }
753
754 async createLabel(name: string, color = '0052cc'): Promise<ForgejoLabel> {
755 return this.request(`${this.originRepoURL}/labels`, {
756 method: 'POST',
757 body: JSON.stringify({ name, color }),
758 });
759 }
760
761 async getOrCreateLabel(name: string): Promise<ForgejoLabel> {
762 const labels = await this.getLabels();

Callers 2

getOrCreateLabelMethod · 0.95
API.spec.jsFile · 0.80

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected