From 7b1c260bed76e8d80ccd70f5ec9c3270393e537f Mon Sep 17 00:00:00 2001 From: h-wata Date: Fri, 26 Apr 2024 15:12:42 +0900 Subject: [PATCH] Add PR agent workflow for automatically comment on PRs --- .github/workflows/pr-agent.yml | 19 +++++++++++++++++++ 1 file changed, 19 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..6e98b3b --- /dev/null +++ b/.github/workflows/pr-agent.yml @@ -0,0 +1,19 @@ +--- +name: LLM PR agent workflow + +on: + # For automatically comment on PRs created by PR agent when a PR is created + pull_request: + types: [opened] + # For run PR agent only when you post command in a comment + issue_comment: + types: [created, edited] + +jobs: + PR_agent: + name: PR agent + uses: sbgisen/.github/.github/workflows/pr_agent.yml@main + with: + common_extra_instructions: "Please answer in Japanese." # Optional + secrets: + openai_key: ${{ secrets.OPENAI_KEY }}