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

Method createLabel

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

Source from the content-addressed store, hash-verified

745 }
746
747 async createLabel(name: string, color = '0052cc'): Promise<ForgejoLabel> {
748 return this.request(`${this.originRepoURL}/labels`, {
749 method: 'POST',
750 body: JSON.stringify({ name, color }),
751 });
752 }
753
754 async getOrCreateLabel(name: string): Promise<ForgejoLabel> {
755 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