For Developers, By Developers 🛠️: Dexter AI enhances code reviews with an AI-powered approach, tailored to the needs of developers.
- AI-Powered PR Reviews 🤖: Automated, insightful analysis to streamline code reviews.
- Advanced Code Analysis 🔍: Deep evaluation focusing on quality and best practices.
- Multilingual Code Support 🌐: Broad compatibility with various programming languages.
- Seamless GitHub Integration 🔗: Smooth integration into GitHub workflows.
- Security Vulnerability Detection 🔐: Proactively identifies potential security risks.
- A GitHub account.
- An OpenAI API key.
- Add Dexter AI as a GitHub Action in your repository.
- Configure the action with your OpenAI API key and other optional settings.
GITHUB_TOKEN
: Your GitHub access token.OPENAI_API_KEY
: Your OpenAI API key.OPENAI_API_MODEL
: The specific OpenAI model used for code analysis.EXCLUDE_PATTERNS
: Patterns to exclude files from analysis.
Once configured, Dexter AI runs automatically on each pull request, reviewing code changes and providing comments directly on the PR. Detailed instructions on usage and customization are available in the documentation.
name: Dexter AI Code Review Workflow
on:
pull_request:
types: [opened, synchronize, reopened]
permissions: write-all
jobs:
pr_review: # Unique identifier for the job
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Code Review
uses: suitedaces/dexter-ai@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-4"
Triggering GitHub Actions for every event and comment can cost money at scale, using GitHub webhooks to listen to events would be a better approach. And with that, the Dexter AI project will continue under the name DevApe (devape.co). More details to be added soon!