◐ Shell
clean mode source ↗

fix(api): use ID instead of name for GroupLabel & ProjectLabel _id_attr by ptalbert · Pull Request #2811 · python-gitlab/python-gitlab

Expand Up @@ -20,7 +20,8 @@

class GroupLabel(SubscribableMixin, SaveMixin, ObjectDeleteMixin, RESTObject): _id_attr = "name" _id_attr = "id" _repr_attr = "name" manager: GroupLabelManager
# Update without ID, but we need an ID to get from list. Expand Down Expand Up @@ -81,7 +82,8 @@ def update( # type: ignore[override] class ProjectLabel( PromoteMixin, SubscribableMixin, SaveMixin, ObjectDeleteMixin, RESTObject ): _id_attr = "name" _id_attr = "id" _repr_attr = "name" manager: ProjectLabelManager
# Update without ID, but we need an ID to get from list. Expand Down