diff --git a/.github/workflows/pr-agent.yml b/.github/workflows/pr-agent.yml new file mode 100644 index 00000000..e5333e22 --- /dev/null +++ b/.github/workflows/pr-agent.yml @@ -0,0 +1,14 @@ +name: PR Agent +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] +jobs: + pr_agent_job: + runs-on: ubuntu-latest + steps: + - name: PR Agent action step + uses: Codium-ai/pr-agent@main + env: + OPENAI_KEY: ${{ secrets.OPENAI_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/DEMO.md b/DEMO.md new file mode 100644 index 00000000..76d32f83 --- /dev/null +++ b/DEMO.md @@ -0,0 +1,22 @@ +# PR-Agent Demo + +This file was created to demonstrate PR-Agent's automated review capabilities. + +**Demo Change:** $(date -u) + +## What to Expect + +When this PR is opened, PR-Agent will: +1. Automatically analyze the changes +2. Generate a comprehensive review with: + - Estimated effort to review + - Security concerns + - Test coverage recommendations + - Code improvement suggestions + +You can also interact with PR-Agent by commenting: +- `/review` - Get a review of the PR +- `/improve` - Get code improvement suggestions +- `/describe` - Auto-generate PR description +- `/ask ` - Ask questions about the PR +