fix: correctly delete labels

This commit is contained in:
Karl-Philipp Wulfert
2019-01-07 11:49:18 +01:00
parent 07b1c76a57
commit 5f36b5372f

View File

@@ -193,11 +193,8 @@ export class Api {
*/
public deleteLabel(projectId: number, name: string): Promise<void> {
return this.makeGitLabAPIRequest(
'projects/' + projectId + '/labels',
`projects/${projectId}/labels?name=${name}`,
{
data: {
name: name,
},
method: 'DELETE',
},
);