python-gitlab / python-gitlab

A python wrapper for the GitLab API.

Home Page:https://python-gitlab.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_id() retruns name of label

cweber-dbs opened this issue · comments

Description of the problem, including code/CLI snippet

get_id() of a GroupLabel returns the name of the label and not the id.
In the case of a label inherited from a parent group, it is not possible to distinguish between two labels if they have the same name.

Expected Behavior

I expect to get the value of label.id

Actual Behavior

I receive the value of label.name

Specifications

  • python-gitlab version: 3.8.1
  • API version you are using (v3/v4):
  • Gitlab server version (or gitlab.com): 16.9.2