Hello everyone,
I am trying to get listed all user’s project repositories with the Gitlab API. However, after trying with different parameters, I cannot get all the repositories. I cannot find a way to retrieve the ones where the user has contributed, but he/she is not the owner or creator.
I have tried the following requests and their combinations:
- r=requests.get("https://gitlab.com/api/v4/users/:userid/projects?owner=no&private_token=<PRIVATE_TOKEN>")
- r=requests.get("https://gitlab.com/api/v4/users/:userid/projects?private_token=<PRIVATE_TOKEN>")
- r=requests.get("https://gitlab.com/api/v4/users/:userid/projects?membership=true&private_token=<PRIVATE_TOKEN>")
- r=requests.get("https://gitlab.com/api/v4/users/:userid/projects?custom_attributes[role]=Developer&private_token=<PRIVATE_TOKEN>")
- r=requests.get("https://gitlab.com/api/v4/users/:userid/projects?membership=true&custom_attributes[role]=Developer&private_token=<PRIVATE_TOKEN>")
I will like to know if there is any parameter to get the repositories where the user has contributed by any comment, issue, or commit.
Thank you so much in advance,
Carmen.