GitHub Setup
This guide will help you set up Codity with GitHub to start reviewing pull requests automatically.
Prerequisites
- A GitHub account with access to the repositories you want to connect
- Admin access to install GitHub Apps on your organization or personal account
- Repositories must allow GitHub App access
Setup Steps
Step 1: Install the Codity GitHub App
- Navigate to Codity Settings → Providers → GitHub
- Click "Connect GitHub" or "Install GitHub App"
- You'll be redirected to GitHub to authorize the Codity GitHub App
- Select the organization or personal account where you want to install the app
- Choose which repositories to grant access to:
- All repositories: Grants access to all current and future repositories
- Only select repositories: Choose specific repositories to connect
- Click "Install" to complete the installation
Step 2: Grant Required Permissions
The Codity GitHub App requires the following permissions:
- Contents (Read): To read repository files and analyze code changes
- Pull Requests (Read & Write): To read PRs and post review comments
- Metadata (Read): To access repository metadata
- Webhooks (Write): To register webhooks for PR notifications
These permissions are automatically requested during installation. You can review them in the GitHub App installation screen.
Step 3: Enable Repositories
- After installation, return to the Codity dashboard
- Navigate to Repositories → Add Repository
- Select GitHub as your provider
- Choose the repositories you want to enable for code reviews
- Click "Enable" for each repository
Step 4: Verify Setup
- Create a test pull request in one of your connected repositories
- Wait 1-3 minutes for Codity to analyze the PR
- Check the PR comments to see Codity's review feedback
Best Practices
- Install at organization level: Install the GitHub App for the entire organization when possible to avoid managing multiple installations
- Grant necessary permissions only: Only grant permissions you need. You can always add more later
- Monitor webhook deliveries: Periodically check webhook delivery status in repository settings
- Use repository selection carefully: Start with "Only select repositories" and add more as needed
- Keep app updated: Ensure you're using the latest version of the Codity GitHub App
Next Steps
- Learn about GitLab setup
- Learn about Azure DevOps setup
- Learn about Bitbucket setup
- Learn about JIRA Integration for connecting JIRA tickets to PR reviews
- Check the Getting Started Guide for general setup instructions