From f99cb051858624d18ef3459a9428a93d893cf46d Mon Sep 17 00:00:00 2001 From: jrgriffiniii <1443986+jrgriffiniii@users.noreply.github.com> Date: Wed, 25 Oct 2023 21:34:37 -0400 Subject: [PATCH 1/3] A first attempt at integrating PR-Agent into a Samvera Labs repository --- .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..78679e1 --- /dev/null +++ b/.github/workflows/pr_agent.yml @@ -0,0 +1,20 @@ +--- +on: + pull_request: + issue_comment: +jobs: + pr_agent_job: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + contents: write + name: Run the CodiumAI PR-Agent in response to comments on every issue and pull request + steps: + # Please see https://github.com/marketplace/codiumai-pr-agent + - name: Invoke the GitHub Action (Downloads the Docker image and runs the container) + id: pr-agent + uses: Codium-ai/pr-agent@latest + env: + OPENAI_KEY: ${{ secrets.OPENAI_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From a241e808efd9fbe813bb76568a9cd30d9b8d5286 Mon Sep 17 00:00:00 2001 From: jrgriffiniii <1443986+jrgriffiniii@users.noreply.github.com> Date: Wed, 25 Oct 2023 22:17:52 -0400 Subject: [PATCH 2/3] wip --- .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 78679e1..31f517b 100644 --- a/.github/workflows/pr_agent.yml +++ b/.github/workflows/pr_agent.yml @@ -14,7 +14,7 @@ jobs: # Please see https://github.com/marketplace/codiumai-pr-agent - name: Invoke the GitHub Action (Downloads the Docker image and runs the container) id: pr-agent - uses: Codium-ai/pr-agent@latest + uses: Codium-ai/pr-agent@main env: OPENAI_KEY: ${{ secrets.OPENAI_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 2a7d1362c35073bfc0677a9d9051d3c7e3af91ef Mon Sep 17 00:00:00 2001 From: jrgriffiniii <1443986+jrgriffiniii@users.noreply.github.com> Date: Wed, 25 Oct 2023 22:23:00 -0400 Subject: [PATCH 3/3] wip --- .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 31f517b..ec1b976 100644 --- a/.github/workflows/pr_agent.yml +++ b/.github/workflows/pr_agent.yml @@ -17,4 +17,4 @@ jobs: uses: Codium-ai/pr-agent@main env: OPENAI_KEY: ${{ secrets.OPENAI_KEY }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}