Integrate with AutoPR

Connect your GitHub repositories to our deployed AutoPR instance.

1

Access the Deployed Instance

Navigate to our hosted AutoPR instance and sign in with your GitHub account:

Open AutoPR Engine →
2

Authorize GitHub Access

When prompted, authorize AutoPR to access your GitHub repositories. The following permissions are required:

  • Read access to repository code and metadata
  • Read/Write access to pull requests and issues
  • Webhook access for PR events
3

Install the GitHub App

Install the AutoPR GitHub App on your organization or personal repositories:

  1. Go to github.com/apps/autopr-engine
  2. Click Install or Configure
  3. Select the repositories you want AutoPR to monitor
  4. Confirm the installation
4

Configure Your Repositories

In the AutoPR dashboard, configure settings for each connected repository:

  • AI Analysis Settings: Choose which AI models to use for code review (GPT-4, Claude, etc.)
  • Workflow Rules: Define automation rules for issue creation and labeling
  • Notification Preferences: Set up Slack, Teams, or Discord notifications
  • Quality Gates: Configure thresholds for security and performance checks
5

Add Configuration File (Optional)

For advanced customization, add an .autopr.yml configuration file to your repository:

# .autopr.yml
version: 1
analysis:
  enabled: true
  ai_provider: openai
  model: gpt-4

workflows:
  - name: pr_review
    triggers:
      - pull_request.opened
      - pull_request.synchronize
    actions:
      - ai_analysis
      - security_scan
      - create_issues

notifications:
  slack:
    channel: "#pr-reviews"
  
quality_gates:
  security:
    block_on_critical: true
  coverage:
    minimum: 80
6

Verify Integration

Test your integration by creating a pull request:

  1. Create a new branch and make some changes
  2. Open a pull request to your main branch
  3. AutoPR will automatically analyze the PR and post comments
  4. Check the AutoPR dashboard for detailed analysis results

API Integration

For programmatic access, use the AutoPR API to integrate with your existing workflows and tools:

# Example: Trigger analysis via API
curl -X POST https://app.autopr.io/api/v1/analyze \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "repository": "owner/repo",
    "pull_request": 123
  }'

Generate your API token from the AutoPR Dashboard Settings.

Webhook Events

AutoPR can send webhook notifications to your systems when analysis is complete:

EventDescription
analysis.completedFired when PR analysis finishes
issues.createdFired when AutoPR creates new issues
security.alertFired when security vulnerabilities are detected
quality.gate.failedFired when a quality gate check fails

Need Help?

Check out our GitHub App Quickstart Guide or reach out on GitHub Discussions.

© 2025 AutoPR Engine. All rights reserved.