Skip to content

Commit

Permalink
gitlab list MRs: return all, not just 20
Browse files Browse the repository at this point in the history
> python-gitlab==3.14.0

```
Calling a `list()` method without specifying `get_all=True` or
`iterator=True` will return a maximum of 20 items. Your query returned
20 of 87 items.
```

Signed-off-by: Tomas Tomecek <[email protected]>
  • Loading branch information
TomasTomecek committed Oct 19, 2023
1 parent 346e911 commit c3ec8a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ogr/services/gitlab/pull_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def get_list(
state=status.name if status != PRStatus.open else "opened",
order_by="updated_at",
sort="desc",
get_all=True,
)
return [GitlabPullRequest(mr, project) for mr in mrs]

Expand Down

0 comments on commit c3ec8a1

Please sign in to comment.