← 返回首页
get_id() retruns name of label · Issue #2839 · python-gitlab/python-gitlab · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

get_id() retruns name of label #2839

New issue
New issue

Description

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Footer

      © 2026 GitHub, Inc.