This article describes how to integrate a GitHub repository so that Commet can index and analyze the issues and pull requests to let you text search them.
There are two ways to achieve this. One is to link your account to GitHub using OAuth2 and allow Commet to import the issues and pull requests on your behalf. The other is to create an incoming webhook endpoint on Commet and have GitHub use it.
Here are the steps:
- Link your account to GitHub (if it isn’t already).
- Grant “repo” scope to Commet.
- Choose a repository that you want to integrate from the GitHub Integration Settings page.
Link your account to GitHub
If you’ve signed up with GitHub, you can skip this step.
- Choose “User Settings” from the drop down menu in the top right corner.
- Click on “External Accounts” in the left menu.
- Click on the “Link” button for GitHub.
Grant “repo” scope to Commet
- Choose a team that you want to integrate with a GitHub repository from the drop down menu at the top.
- Choose “Integrations” from the “Manage Team” drop down menu.
- Click on “GitHub” under “API” in the left menu.
- Click on the “Grant ‘repo’ Permission” button.
Choose a repository that you want to integrate
On the same page, follow the steps below:
- If you don’t see any repositories in the drop down menu, click on the refresh icon next to the drop down.
- Choose a repository.
- Click on the “Add” button.
The background program on Commet will start importing the issues and pull requests within 5 minutes.