From 4b4ab8ef67796d4c603978b3d2d5ef1ce59327d5 Mon Sep 17 00:00:00 2001 From: zonble Date: Sun, 12 Jan 2025 11:40:58 +0800 Subject: [PATCH] Adds AI PR agent. --- .github/workflows/codeium-pr-agent.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/codeium-pr-agent.yml diff --git a/.github/workflows/codeium-pr-agent.yml b/.github/workflows/codeium-pr-agent.yml new file mode 100644 index 0000000..2b6cdd3 --- /dev/null +++ b/.github/workflows/codeium-pr-agent.yml @@ -0,0 +1,22 @@ +on: + pull_request: + types: [opened, reopened, ready_for_review] + issue_comment: + +jobs: + pr_agent_job: + if: ${{ github.event.sender.type != 'Bot' }} + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + contents: write + 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_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + \ No newline at end of file