fix: branch rule #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull request code review by ChatGPT | |
on: | |
pull_request: | |
types: [opened, reopened, ready_for_review, synchronize] | |
issue_comment: | |
types: [created, edited] | |
workflow_dispatch: | |
jobs: | |
pr_agent_job: | |
name: Code review | |
if: ${{ github.event.sender.type != 'Bot' }} | |
runs-on: ubuntu-24.04 | |
permissions: | |
issues: write | |
pull-requests: write | |
contents: write | |
steps: | |
- name: Review codes with ChatGPT | |
id: pragent | |
uses: Codium-ai/pr-agent@main | |
env: | |
CONFIG.MODEL: gpt-4o-mini | |
GITHUB_ACTION.AUTO_DESCRIBE: true | |
GITHUB_ACTION.AUTO_IMPROVE: true | |
GITHUB_ACTION.AUTO_REVIEW: true | |
GITHUB_ACTION.PR_DESCRIPTION.USE_DESCRIPTION_MARKERS: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OPENAI_KEY: ${{ secrets.OPENAI_KEY }} | |
PR_DESCRIPTION.EXTRA_INSTRUCTIONS: Please use Japanese in descriptions. Titles should have prefix of commitlint pattern such as `feat:`, `fix:`, `perf:`, `refactor:`, `test:`, `chore:`, `ci:`, `docs:` etc | |
PR_DESCRIPTION.USE_DESCRIPTION_MARKERS: true | |
PR_REVIEWER.EXTRA_INSTRUCTIONS: Please use Japanese in descriptions. |