Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_id() retruns name of label #2839

Open
cweber-dbs opened this issue Apr 16, 2024 · 0 comments
Open

get_id() retruns name of label #2839

cweber-dbs opened this issue Apr 16, 2024 · 0 comments

Comments

@cweber-dbs
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant