From cf7f65029bfd662876ee648635adbb21202e63e8 Mon Sep 17 00:00:00 2001 From: tonywu1999 Date: Thu, 31 Oct 2024 12:24:16 -0400 Subject: [PATCH] ci(codium): Add codium agent to PRs for MSstats (#141) * ci(codium): Add codium agent to PRs for MSstats * add openAI org secret to template --- .github/workflows/codium-pr-agent.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/codium-pr-agent.yml diff --git a/.github/workflows/codium-pr-agent.yml b/.github/workflows/codium-pr-agent.yml new file mode 100644 index 0000000..aa55650 --- /dev/null +++ b/.github/workflows/codium-pr-agent.yml @@ -0,0 +1,19 @@ +on: + pull_request: + types: [opened] +jobs: + pr_agent_job: + if: ${{ github.event.sender.type != 'Bot' }} + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: read + name: Run pr agent on every pull request + steps: + - name: PR Agent action step + id: pragent + uses: Codium-ai/pr-agent@main + env: + OPENAI_KEY: ${{ secrets.MSSTATS_OPENAI_KEY }} + OPENAI_ORG: ${{ secrets.MSSTATS_OPENAI_ORG }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file