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