get_id() retruns name of label
cweber-dbs opened this issue · comments
Christian Weber commented
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