pd4d10 / git-touch

An open-source app for GitHub, GitLab, Bitbucket, Gitea, and Gitee(码云), built with Flutter
Apache License 2.0
1.53k stars 130 forks source link

How do I get access to private repos (Gitlab) #225

Open weeebdev opened 3 years ago

weeebdev commented 3 years ago

The app doesn't read private repos that I don't own in Gitlab, but has been added as Developer or Maintainer.

timo955 commented 3 years ago

Sent from my LM-Q730 using FastHub

weeebdev commented 3 years ago

Sent from my LM-Q730 using FastHub

???

luni-moon commented 3 years ago

The app doesn't read private repos that I don't own, but has been added as Developer or Maintainer.

I will check to see if I get the same results. What version are you running, what device, etc.


EDIT:


Go to: Settings/Review Permissions


Check near the bottom of the page for a line that says something like, Full control of private repositories. If you do not see that, please redo your permissions to allow this. Hope that helped. If not, please let me know!


You might have logged in originally using the option with OAuth (Public Repos Only) If you remember doing so, you may need to remove your account from the list, temporarily revoke access in the settings directory I mentioned earlier, then log in with the option using just OAuth (without any special features).


The first option seems more probable, according to your explanation of the issue.


weeebdev commented 3 years ago

The app doesn't read private repos that I don't own, but has been added as Developer or Maintainer.

I will check to see if I get the same results. What version are you running, what device, etc.


EDIT:


Go to: Settings/Review Permissions


Check near the bottom of the page for a line that says something like, Full control of private repositories. If you do not see that, please redo your permissions to allow this. Hope that helped. If not, please let me know!


You might have logged in originally using the option with OAuth (Public Repos Only) If you remember doing so, you may need to remove your account from the list, temporarily revoke access in the settings directory I mentioned earlier, then log in with the option using just OAuth (without any special features).


The first option seems more probable, according to your explanation of the issue.


I am sorry, but I think I didn't understand you. I meant Gitlab, so I can't find Review Permissions there. Also, for gitlab it's only possible to login via tokens, not OAuth and I already grant all necessary permissions like api, read_user and read_repository

luni-moon commented 3 years ago

The app doesn't read private repos that I don't own, but has been added as Developer or Maintainer.

I will check to see if I get the same results. What version are you running, what device, etc.


EDIT:


Go to: Settings/Review Permissions


Check near the bottom of the page for a line that says something like, Full control of private repositories. If you do not see that, please redo your permissions to allow this. Hope that helped. If not, please let me know!


You might have logged in originally using the option with OAuth (Public Repos Only) If you remember doing so, you may need to remove your account from the list, temporarily revoke access in the settings directory I mentioned earlier, then log in with the option using just OAuth (without any special features).


The first option seems more probable, according to your explanation of the issue.


I am sorry, but I think I didn't understand you. I meant Gitlab, so I can't find Review Permissions there. Also, for gitlab it's only possible to login via tokens, not OAuth and I already grant all necessary permissions like api, read_user and read_repository

My bad, sorry.

weeebdev commented 3 years ago

The app doesn't read private repos that I don't own, but has been added as Developer or Maintainer.

I will check to see if I get the same results. What version are you running, what device, etc.

EDIT:

Go to: Settings/Review Permissions

Check near the bottom of the page for a line that says something like, Full control of private repositories. If you do not see that, please redo your permissions to allow this. Hope that helped. If not, please let me know!

You might have logged in originally using the option with OAuth (Public Repos Only) If you remember doing so, you may need to remove your account from the list, temporarily revoke access in the settings directory I mentioned earlier, then log in with the option using just OAuth (without any special features).

The first option seems more probable, according to your explanation of the issue.

I am sorry, but I think I didn't understand you. I meant Gitlab, so I can't find Review Permissions there. Also, for gitlab it's only possible to login via tokens, not OAuth and I already grant all necessary permissions like api, read_user and read_repository

My bad, sorry.

No, it's my bad, sorry. I'll edit my issue to make it more obvious 😄

shreyas1599 commented 3 years ago

@weeebdev can you verify with this endpoint if the repos you wish to be fetched are visible? I'm not a member of any gitlab project so I can't verify. https://gitlab.com/api/v4/users/{your_user_id}/projects?membership=true&Private-Token={your_private_token}. If you aren't aware of your user id you can get it from https://gitlab.com/api/v4/users?username={your_gitlab_username}&Private-Token={your_private_token} I'll add a fix once you verify it works.

weeebdev commented 3 years ago

https://gitlab.com/api/v4/users/{your_user_id}/projects?membership=true&Private-Token={your_private_token}

Nope. I do only see my own public repos (not even private)