Cannot Integrate Gitbook organization with repo owned by Github organization
What is the current behavior?
I tried connecting my Gitbooks organization to my github organization. The first OAuth step works OK but I do not land on a page for granting access to my repositories, as shown in step 2 here: https://help.gitbook.com/github/can-i-host-on-github.html.
After the initial OAuth step, when I go to the GitHub tab in my Organization page on gitbooks I see the "Install Github integration on this account" button is disabled and the Books section is still empty, with the text "Your books linked to GitHub will be listed here once the GitHub integration has been installed on this account."
I click "Select a GitHub organization" and the dialog shows the name of my github org dive-networks, with the text "Github admin permissions required". However the entire dialog is disabled.
My gitbooks user name: oshoma My gitbooks org name: @dive I'm running on a recent Macbook, OSX 10.10.5, Chrome 58. Also repro's on Safari.
What is the expected behavior?
I should be prompted to select repositories as shown here https://help.gitbook.com/github/can-i-host-on-github.html.
I have this problem too.
I already grant gitbook the permission to access my organization, but when I select the github repo at gitbook setting, I can select my own repo only, I cannot select the repo of the organization, because it didn't show.
Me too!
I was facing the same issue. Finally, I figured it out. It is not that straightforward.
Step 1: Sign In to Gitbook and go to setting page. Click on Github tab as shown below:

Step 2: Once you click on blue button to install GitHub integration. You will be taken to the following screen:

Step 3: This step is important. By default, GitBook will attempt to install app to your personal account. This is not what we want. We want to install it with the organization so that we can use repositories that are part of the organization. On above snapshot you should click cancel button instead of install button. This will take you to the following UI:

Step 4: Now you can choose your organization and select your organizational repositories.
Also, make that you have already granted access to GitBook at organizational level before you perform these steps.
Looks like this no longer works.
Orgs don't show up when I try to link my projects to a github org.
I'm going to play around with it but it looks like these instructions (though hopeful) are out of date. :(
I setup a repo in github on my personal account but really would like it to be in an org. Anyone know how to do this with the current version of gitbook?
In particular what do we do when an organization hasn't approved the third party request, but, our project is under the organization. For example, Microsoft has hundreds of repositories, however, admins don't necessary want to grant GitBook access to all hundred + projects. Is there a manual work around to achieve integration between GitBook and GitHub?
I faced the same issue, and finally found a way to get an integration between GitBook and a repository within an organization I own.
- Enable the GitHub integration in your GitBook project and go to the point where your repositories are listed by GitBook. At this point, you won't see your organization.
- Go to your GitHub account settings under the Applications menu.
- Select the Authorized OAuth Apps tab.
- Search for GitBook and click on it.
- In the Organization access section of the page, the organization which does not appear in GitBook should show up with a red cross on it. Click the Grant button (the button is actually buggy so you'll have to reload the page after having clicked on it for the state to refresh).
- Go back to GitBook and re-initiate the GitHub integration to force GitBook to re-query your list of repositories from GitHub.
- Your organization should appear now.