Connect GitHub to EkLine Docs Agent
Connect your GitHub organization to EkLine. Docs Agent can then watch your repositories, review pull requests, and write docs.
Prerequisites
Section titled “Prerequisites”- An EkLine account with an organization. Sign up if you haven’t already.
- Admin access to the GitHub organization you want to connect.
If you do not see the GitHub Integration tab or the Install the GitHub App button, contact support@ekline.io.
Install the GitHub App
Section titled “Install the GitHub App”You start the install from the GitHub Integration settings page. The first time, it shows the Install the GitHub App button.
-
Open GitHub integration settings.
Go to your EkLine Dashboard, then open Settings > Integrations > GitHub Integration.
-
Start the installation.
Click the Install the GitHub App button. GitHub opens so you can authorize the EkLine app.
-
Select your GitHub account.
On the GitHub page, select the user account that authorizes EkLine.
-
Select the target organization.
Select the GitHub organization to install the EkLine app on.
-
Select repository access.
GitHub shows two options:
- All repositories: EkLine can access every repository in the organization.
- Only select repositories: you select the repositories.
Select Only select repositories, then search for the repositories EkLine should watch. You can change this later in your GitHub organization settings.
-
Complete the GitHub installation.
Click the Install button. GitHub sends you back to EkLine to finish the connection.
Connect the organization in EkLine
Section titled “Connect the organization in EkLine”When GitHub sends you back, EkLine links the install to your EkLine organization. If EkLine shows the GitHub App Setup page with an organization picker, finish the connection there.
-
Select your organization.
On the GitHub App Setup page, use the Select an organization dropdown. Select the EkLine organization to link to this install.
-
Finish the connection.
Click the Connect GitHub button. EkLine links your GitHub organization and loads your repositories.
Connect another GitHub organization
Section titled “Connect another GitHub organization”One EkLine organization can connect more than one GitHub organization. Any member of your EkLine organization can add one.
- On the GitHub Integration settings page, find Connected GitHub accounts, which lists the accounts already connected.
- Click Install on another GitHub account, then follow the same steps as the first install.
Repositories from every connected account appear together in the repository lists. If EkLine can no longer reach a connected account, for example because the app was uninstalled there, a warning naming that account appears on the page.
If you don’t see Connected GitHub accounts, contact support@ekline.io.
Configure repositories
Section titled “Configure repositories”Once you connect, the GitHub integration page shows two lists of repositories. Each list has a badge that shows whether EkLine writes there.
| Section | Badge | Purpose |
|---|---|---|
| Where EkLine writes | Write access | Repositories that hold your docs. EkLine opens pull requests here. You can set paths to target certain folders or files. |
| What else EkLine can read | Read-only | Code repositories where your product changes land. EkLine reads them to see what changed and why. It never writes to them. |
Add documentation repositories
Section titled “Add documentation repositories”-
Search and select a repository.
Use the search field under Where EkLine writes to find and select a repository.
-
Add documentation paths.
Click the Add Path button next to the repository. Enter the file or folder path for EkLine to watch, such as
docs/,README.md, orcontent/.Click Save. The path shows as a tag that you can remove later.
-
Check that monitoring is on.
The Enable monitoring switch is on by default for each repository you add. While it is on, EkLine runs automatic PR review on the repository’s pull requests, if automatic PR review is on for your organization. Turn it off only to stop automatic review for that repository.
-
Check that your selection saved.
Your selection saves as you change it, so there is no save button. A message under the list reads Saving…, then Saved. If a save fails, it reads Could not save the repository selection. and shows a Try again control.
Add code repositories
Section titled “Add code repositories”Use the search field under What else EkLine can read to select code repositories. They give EkLine context when it writes and reviews docs. Like the repositories under Where EkLine writes, they can get automatic PR review. They need no paths.
Verify the connection
Section titled “Verify the connection”When setup is done, check that:
- The Connected GitHub accounts section lists the GitHub account you installed the app on.
- Your selected repositories appear under Where EkLine writes or What else EkLine can read.
- Docs paths show as tags next to their repositories.
- Enable monitoring is on for each repository you want EkLine to review automatically.
Next steps
Section titled “Next steps”- Use the GitHub PR bot to write docs from pull request comments.
- Set up automatic PR review so EkLine spots PRs that need docs updates.
- Set up the GitHub Action to run style checks on every pull request.
Stuck?
Section titled “Stuck?”Reply to your welcome email or contact support@ekline.io. We read every message.
Built on Potluck Docs, our open source template.