PR-Pilot-AI / pr-pilot

An AI agent for your development workflow that can search and manipulate the code base, browse the internet and interact with Github issues and pull requests
https://www.pr-pilot.ai
GNU General Public License v3.0
148 stars 15 forks source link

✨ Add Sentry Integration to PR Pilot #194

Closed pr-pilot-ai[bot] closed 2 months ago

pr-pilot-ai[bot] commented 2 months ago

Summary

This PR introduces a new Sentry integration to PR Pilot. Users can now enter their Sentry API key in the dashboard, allowing PR Pilot to interact with the Sentry API to search for issues and events.

Changes Made

  1. Model Addition: Added SentryIntegration model to accounts/models.py to store the Sentry API key.
  2. Template Update: Updated dashboard/templates/integrations/sentry.html to include a form for entering the Sentry API key.
  3. View Update: Updated IntegrationView class in dashboard/views/integrations.py to handle the Sentry API key form submission.
  4. Agent Tools: Implemented Sentry agent tools in engine/agents/integration_tools/sentry_tools.py.
  5. Tool Registration: Updated tool registration in engine/agents/integration_tools/__init__.py to include Sentry tools.
  6. Unit Tests: Added unit tests for the new tools in engine/agents/tests/test_sentry_tools.py.

Related Issue

Closes #193

Notes

Checklist