Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to give people write access to a github wiki without giving them access to see the code

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).

like image 961
Ali Avatar asked Oct 25 '12 23:10

Ali


People also ask

How do I give someone access to edit on GitHub?

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.

Do GitHub collaborators have write access?

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.

Who can edit a wiki GitHub?

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.


1 Answers

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.

like image 119
VonC Avatar answered Nov 08 '22 19:11

VonC