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
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
Model Addition: Added SentryIntegration model to accounts/models.py to store the Sentry API key.
Template Update: Updated dashboard/templates/integrations/sentry.html to include a form for entering the Sentry API key.
View Update: Updated IntegrationView class in dashboard/views/integrations.py to handle the Sentry API key form submission.
Agent Tools: Implemented Sentry agent tools in engine/agents/integration_tools/sentry_tools.py.
Tool Registration: Updated tool registration in engine/agents/integration_tools/__init__.py to include Sentry tools.
Unit Tests: Added unit tests for the new tools in engine/agents/tests/test_sentry_tools.py.
Related Issue
Closes #193
Notes
Ensure to run the migrations after merging this PR to add the new SentryIntegration model to the database.
The Sentry integration allows querying Sentry issues and events, enhancing the capabilities of PR Pilot.
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
SentryIntegration
model toaccounts/models.py
to store the Sentry API key.dashboard/templates/integrations/sentry.html
to include a form for entering the Sentry API key.IntegrationView
class indashboard/views/integrations.py
to handle the Sentry API key form submission.engine/agents/integration_tools/sentry_tools.py
.engine/agents/integration_tools/__init__.py
to include Sentry tools.engine/agents/tests/test_sentry_tools.py
.Related Issue
Closes #193
Notes
SentryIntegration
model to the database.Checklist
SentryIntegration
model