scanoss / webhook

This is the repository of the SCANOSS webhook
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

Add paging in gitlab version of get_diff_json #10

Closed simsandyca closed 1 year ago

simsandyca commented 1 year ago

Here's a little change to the gitlab version of the webhook. I was seeing a limitation where only 20 files in a commit with 74 files were being scanned. The problem is that the gitlab api (at least in our install 14.10) returns the commit differences using paging.

To get all the files you need a few requests to read through the pages.

mscasso-scanoss commented 1 year ago

HI @simsandyca ! Thank you so much for your contribution