8000 get_id() retruns name of label · Issue #2839 · python-gitlab/python-gitlab · GitHub
[go: up one dir, main page]

Skip to content
get_id() retruns name of label #2839
Open
@cweber-dbs

Description

@cweber-dbs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0