From 9a3f90a61f0c85922ae25954774e1dc695c2207b Mon Sep 17 00:00:00 2001 From: Nick Hellemans Date: Mon, 23 Sep 2024 10:11:44 +0200 Subject: [PATCH] Create pr-agent.yml Signed-off-by: Nick Hellemans --- .github/workflows/pr-agent.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pr-agent.yml diff --git a/.github/workflows/pr-agent.yml b/.github/workflows/pr-agent.yml new file mode 100644 index 0000000..71652ab --- /dev/null +++ b/.github/workflows/pr-agent.yml @@ -0,0 +1,23 @@ +name: CodiumAI PR-Agent + +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 }}