From 69123645f28cf8efb5f2d4ce3704f7bd6958fef8 Mon Sep 17 00:00:00 2001 From: Mohamed DAADAA Date: Sat, 27 Jul 2024 17:41:39 +0200 Subject: [PATCH 1/2] Add Codium PR Agent GitHub Action --- .github/workflows/pr_agent.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..7b1d677 --- /dev/null +++ b/.github/workflows/pr_agent.yml @@ -0,0 +1,30 @@ +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 }} + TOKEN_GITHUB: ${{ secrets.TOKEN_GITHUB }} + # ------------- pin the action to a specific release for stability + # steps: + # - name: PR Agent action step + # id: pragent + # uses: docker://codiumai/pr-agent:0.23-github_action + # --------- specify the Docker image + #steps: + # - name: PR Agent action step + # id: pragent + # uses: docker://codiumai/pr-agent@sha256:14165e525678ace7d9b51cda8652c2d74abb4e1d76b57c4a6ccaeba84663cc64 From f2bdff7d553f9be8ea5b6dfb6b60430f26dd99c3 Mon Sep 17 00:00:00 2001 From: Mohamed DAADAA Date: Sat, 27 Jul 2024 17:44:22 +0200 Subject: [PATCH 2/2] Test PR Agent integration --- README.md | Bin 1077 -> 1164 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 3d530348c4ea669d721708003707e411e6d1ca3a..808130cda43affaab187b9c0f538fc8e927cd447 100644 GIT binary patch delta 234 zcmdnW(ZeaKtl*ZIoa&NVlA2tSnV;uaP{7N@J5e}I21s!!D=WC9mZj$87v!eql_(Ua z7L}zIf#fI7kb=rP=clA96elO9rRC?OWagywsKVx1U}m_9>{i%VHq!8t!ARiQXJ zF)b}WCnYm4ooliu<3et*lv8PDP72rLpNvV2T$AINfVw7^Glc@l^Gq^8@*UGAA+S2P X(xQ@#)FOq9)SLpY$=jG`FmeF^!#E}b