Closed threemay closed 4 weeks ago
PUT /projects/:id/labels/:label_id from the doc https://docs.gitlab.com/ee/api/labels.html#edit-an-existing-label
PUT /projects/:id/labels/:label_id
For the UpdateLabel function https://github.com/xanzy/go-gitlab/blob/098437be4ce2607448e2dfa5aaa8509e4e2ac475/labels.go#L224C2-L224C61 u := fmt.Sprintf("projects/%s/labels", PathEscape(project))
u := fmt.Sprintf("projects/%s/labels", PathEscape(project))
Should be fixed by #2049 The "current" form is used by older version of GitLab, the new version was not yet added everywhere:
PUT /projects/:id/labels/:label_id
from the doc https://docs.gitlab.com/ee/api/labels.html#edit-an-existing-labelFor the UpdateLabel function https://github.com/xanzy/go-gitlab/blob/098437be4ce2607448e2dfa5aaa8509e4e2ac475/labels.go#L224C2-L224C61
u := fmt.Sprintf("projects/%s/labels", PathEscape(project))