name: PR Agent Workflow

permissions:
  issues: write
  pull-requests: write

on:
  pull_request:
  issue_comment:
jobs:
  pr_agent_job:
    permissions: write-all
    runs-on: ubuntu-latest
    name: Run pr agent on every pull request, respond to user comments
    steps:
      - name: PR Agent action step
        id: pragent
        uses: Codium-ai/pr-agent@main
        env:
          OPENAI_KEY: ${{ secrets.OPENAI_API_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
