Skip to content

Are the parent commits of a commit accessible? #2700

Description

@kayman-mk

Description of the problem, including code/CLI snippet

I was looking for the ids of the parent commits for a specific commit. I know that GitLab returns them as parent_ids when calling GET /projects/:id/repository/commits/:sha. But I wasn't able to find them in the ProjectCommit class.

Did I overlook them or do we have to add them to ProjectCommit as they are missing at the moment?

Specifications

  • python-gitlab version: v4.0.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): not relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    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