(name: string, color = '0052cc')
| 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(); |
no test coverage detected