diff --git a/.github/workflows/pr-agent.yml b/.github/workflows/pr-agent.yml new file mode 100644 index 0000000..35de75e --- /dev/null +++ b/.github/workflows/pr-agent.yml @@ -0,0 +1,26 @@ +on: + pull_request: + types: [opened, reopened, ready_for_review, synchronize] + 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: qodo-ai/pr-agent@main + env: + OPENAI_KEY: ${{ secrets.OPENAI_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + github_action.auto_describe: true + github_action.auto_review: true + github_action.auto_improve: true + PR_DESCRIPTION.EXTRA_INSTRUCTIONS: '日本語で記述してください。タイトルに次のPrefixをつけてください。`feat:`, `fix:`, `perf:`, `refactor:`, `test:`, `chore:`, `ci:`, `docs:` etc' + PR_REVIEWER.EXTRA_INSTRUCTIONS: '日本語で記述してください。' + PR_CODE_SUGGESTIONS.EXTRA_INSTRUCTIONS: '日本語で記述してください。' \ No newline at end of file