From 5f36b5372f87d912c2b733971dca659203021d67 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Mon, 7 Jan 2019 11:49:18 +0100 Subject: [PATCH] fix: correctly delete labels --- src/api.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/api.ts b/src/api.ts index 35b70da0..55e8b41e 100644 --- a/src/api.ts +++ b/src/api.ts @@ -193,11 +193,8 @@ export class Api { */ public deleteLabel(projectId: number, name: string): Promise { return this.makeGitLabAPIRequest( - 'projects/' + projectId + '/labels', + `projects/${projectId}/labels?name=${name}`, { - data: { - name: name, - }, method: 'DELETE', }, );