From 283806b4c565d4c22acda493f562be9a68cbe74e Mon Sep 17 00:00:00 2001 From: Lingjie Kong Date: Mon, 25 Nov 2024 15:53:06 -0800 Subject: [PATCH 1/2] Create pr_agent.yml --- .github/workflows/pr_agent.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..eda0f73 --- /dev/null +++ b/.github/workflows/pr_agent.yml @@ -0,0 +1,20 @@ +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 }} From b204ad9fdec58230753447a4c47d8a2f63407ff0 Mon Sep 17 00:00:00 2001 From: Lingjie Kong Date: Mon, 25 Nov 2024 15:59:08 -0800 Subject: [PATCH 2/2] Update pr_agent.yml --- .github/workflows/pr_agent.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_agent.yml b/.github/workflows/pr_agent.yml index eda0f73..bdceb06 100644 --- a/.github/workflows/pr_agent.yml +++ b/.github/workflows/pr_agent.yml @@ -16,5 +16,5 @@ jobs: id: pragent uses: Codium-ai/pr-agent@main env: - OPENAI_KEY: ${{ secrets.OPENAI_KEY }} + OPENAI_KEY: ${{ secrets.OPENAI_API_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}