meteorlxy / vssue

:mailbox: A Vue-powered Issue-based Comment Plugin
https://vssue.js.org
MIT License
775 stars 105 forks source link

[Question] How to give access to private repo on GitHub? #88

Closed shailen-naidoo closed 4 years ago

shailen-naidoo commented 4 years ago

Environment

What's your question?

Hi there, I would like to know how to authorize Vssue so that it can get access to my private repo on GitHub. Is this possible?

meteorlxy commented 4 years ago

Sorry but the answer is No.

You can consider create an empty repo only for storing your comments

shailen-naidoo commented 4 years ago

@meteorlxy What is blocking the implementation of making comments on a private repo? Is it not apart of the roadmap perhaps?

meteorlxy commented 4 years ago

It's private, so that other users cannot access it and its issues. Then no one can view / post comments except yourself

shailen-naidoo commented 4 years ago

@meteorlxy What about team members that have access to the private repo? We have an internal Wiki that makes use of Vssue but we changed it to private so that is a viable use case. I will fork and see If I can get to work 😄

meteorlxy commented 4 years ago

Well, you can fork the api package and change the scope of access_token from public_repo to repo

https://github.com/meteorlxy/vssue/blob/7167b6e59516512eb4f2a940b618f9688d3dd34f/packages/%40vssue/api-github-v3/src/index.ts#L126

FYI: https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/#available-scopes

Good luck!