I want to give read and write access to the wiki for a private repo on github, on the same repo, I don't want these team members to be able to see the actual repo (the repo that contains the code not the wiki itself), is there a way to do that?
To make it more clear, I want to publish my API's documentation, which is just internal to the team, that uses the API but keep the actual api code hidden from them (it sounds evil, but it is not that bad, you need to know the whole story, please don't judge me).
Select the GitHub App whose permissions you want to change. In the left sidebar, click Permissions & webhooks. Modify the permissions you'd like to change. For each type of permission, select either "Read-only", "Read & write", or "No access" from the dropdown.
Collaborators on a personal repository can pull (read) the contents of the repository and push (write) changes to the repository. Note: In a private repository, repository owners can only grant write access to collaborators. Collaborators can't have read-only access to repositories owned by a personal account.
Only repository collaborators can edit a public repository's wiki by default, but you can allow anyone with an account on GitHub.com to edit your wiki.
One workaround would be to use the wiki of a public repo, and declare that public repo as a submodule of the private repo.
That fact that the wiki repo is a submodule means the parent repo (the private one with the code) does record the exact version (SHA1) of the wiki repo it is in sync with: each version of the private repo knows what version of the wiki it refers too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With