Skip to content

Unable to get page count info when calling commit.diff() #1231

Closed
@hungluong5791

Description

@hungluong5791

Description of the problem, including code/CLI snippet

Calling commit.diff() to get diff information for a commit only return per_page items or 20 by default. It seems commit.diff() does not take either all or as_list and only pagination works, but we don't know how many page there are except by manually checking the returned list size.

Expected Behavior

Using commit.diff() should be able to give us all the diffs in a commit without having to manually checking the returned page size

Actual Behavior

As described

Specifications

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions