From caa425ad17e5b312f33965585136beabd62ea307 Mon Sep 17 00:00:00 2001 From: CFC4N Date: Sun, 29 Dec 2024 17:31:07 +0800 Subject: [PATCH] github workflows: add GitHub Action Codium-ai/pr-agent Signed-off-by: CFC4N --- .github/workflows/pr_agent.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 000000000..f3bdd3f6e --- /dev/null +++ b/.github/workflows/pr_agent.yml @@ -0,0 +1,24 @@ +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 }} + github_action_config.auto_review: "true" # enable\disable auto review + github_action_config.auto_describe: "true" # enable\disable auto describe + github_action_config.auto_improve: "true" # enable\disable auto improve + github_action_config.pr_actions: '["opened", "reopened", "ready_for_review", "review_requested"]' \ No newline at end of file