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

Method getLabels

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

Source from the content-addressed store, hash-verified

739 }
740
741 async getLabels(): Promise<ForgejoLabel[]> {
742 return this.requestAllPages<ForgejoLabel>(`${this.originRepoURL}/labels`, {
743 params: { limit: 100 },
744 });
745 }
746
747 async createLabel(name: string, color = '0052cc'): Promise<ForgejoLabel> {
748 return this.request(`${this.originRepoURL}/labels`, {

Callers 2

getOrCreateLabelMethod · 0.95
API.spec.jsFile · 0.80

Calls 1

requestAllPagesMethod · 0.95

Tested by

no test coverage detected