From 8a05f50b52e7eaf094a119ab11b565903c5ce3c3 Mon Sep 17 00:00:00 2001 From: kaitoyama <45167401+kaitoyama@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:56:16 +0900 Subject: [PATCH 1/2] Update pr-agent.yml --- .github/workflows/pr-agent.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pr-agent.yml b/.github/workflows/pr-agent.yml index 16cf20c..dda3940 100644 --- a/.github/workflows/pr-agent.yml +++ b/.github/workflows/pr-agent.yml @@ -1,16 +1,17 @@ name: PR Agent on: pull_request: - types: ready_for_review + types: + - ready_for_review + - opened issue_comment: - types: [created, edited] + types: + - created + - edited + jobs: - condition_check: - if: github.event.pull_request.draft == true - run: exit 0 - pr_agent_job: - if: ${{ github.event.sender.type != 'Bot' }} + if: ${{github.event.sender.type != 'Bot' && github.event.pull_request.draft == false}} runs-on: ubuntu-latest permissions: issues: write @@ -24,12 +25,11 @@ jobs: env: OPENAI_KEY: ${{ secrets.OPENAI_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_ACTION.AUTO_REVIEW: "true" - GITHUB_ACTION.AUTO_DESCRIBE: "true" - GITHUB_ACTION.AUTO_IMPROVE: "false" - PR_REVIEWER.EXTRA_INSTRUCTIONS: "必ず日本語で回答してください" - PR_DESCRIPTION.PUBLISH_LABELS: "false" - PR_DESCRIPTION.PUBLISH_DESCRIPTION_AS_COMMENT: "true" - PR_DESCRIPTION.KEEP_ORIGINAL_USER_TITLE: "true" - PR_DESCRIPTION.ADD_ORIGINAL_USER_DESCRIPTION: "true" - PR_DESCRIPTION.EXTRA_INSTRUCTIONS: "Please use Japanese in descriptions. Titles should have prefix of commitlint pattern such as `feat:`, `chore:`, `test:`, `fix:`, `ci:`, `docs:` etc" \ No newline at end of file + GITHUB_ACTION.AUTO_REVIEW: 'true' + GITHUB_ACTION.AUTO_DESCRIBE: 'true' + GITHUB_ACTION.AUTO_IMPROVE: 'false' + PR_REVIEWER.EXTRA_INSTRUCTIONS: '必ず日本語で回答してください' + PR_DESCRIPTION.PUBLISH_LABELS: 'false' + PR_DESCRIPTION.PUBLISH_DESCRIPTION_AS_COMMENT: 'true' + PR_DESCRIPTION.ADD_ORIGINAL_USER_DESCRIPTION: 'false' + PR_DESCRIPTION.EXTRA_INSTRUCTIONS: 'Please use Japanese in descriptions.' From 8b25ffec77c1de3726e932780ab527e439456274 Mon Sep 17 00:00:00 2001 From: kaitoyama <45167401+kaitoyama@users.noreply.github.com> Date: Thu, 27 Jun 2024 14:01:41 +0900 Subject: [PATCH 2/2] Update pr-agent.yml --- .github/workflows/pr-agent.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr-agent.yml b/.github/workflows/pr-agent.yml index dda3940..c2cae8f 100644 --- a/.github/workflows/pr-agent.yml +++ b/.github/workflows/pr-agent.yml @@ -30,6 +30,5 @@ jobs: GITHUB_ACTION.AUTO_IMPROVE: 'false' PR_REVIEWER.EXTRA_INSTRUCTIONS: '必ず日本語で回答してください' PR_DESCRIPTION.PUBLISH_LABELS: 'false' - PR_DESCRIPTION.PUBLISH_DESCRIPTION_AS_COMMENT: 'true' PR_DESCRIPTION.ADD_ORIGINAL_USER_DESCRIPTION: 'false' PR_DESCRIPTION.EXTRA_INSTRUCTIONS: 'Please use Japanese in descriptions.'