Yang Code Review (YCR) is a AI agent that helps you review code changes in your GitHub repositories.
CLIENT_IDandCLIENT_SECRETare masked automatically in GitHub Actions logs
CLIENT_ID– Client ID for authentication with the YangYang API serviceCLIENT_SECRET– Client secret for authentication with the YangYang API serviceGITHUB_TOKEN– GitHub token for PR comments
| Name | Required | Description |
|---|---|---|
| CLIENT_ID | yes | Client ID for authentication with the YangYang API service |
| CLIENT_SECRET | yes | Client secret for authentication with the YangYang API service |
| AGENT_NAME | yes | Name of the agent to use for code review |
| MODEL_NAME | yes | Name of the model to use for code review |
| MODEL_TEMPERATURE | yes | Temperature for the model |
| GITHUB_TOKEN | yes | GitHub token for PR comments |
| Model Name | Description |
|---|---|
| anthropic_claude_sonet_4_5 | Claude Sonet 4.5 |
| gpt_oss_120b | GPT-OSS 120B |
| llama_4_scout_17b_instruct | Llama 4 Scout 17B Instruct |
| Agent Name | Description |
|---|---|
| yang-code-review | YangYang Code Review |
name: YangYang Code Review (YCR)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
code-review:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: yang-code-review
uses: YangYang-Research/yang-code-review@v1.0.7
with:
CLIENT_ID: ${{ secrets.YANG_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.YANG_CLIENT_SECRET }}
AGENT_NAME: 'yang-code-review'
MODEL_NAME: 'anthropic_claude_sonet_4_5'
MODEL_TEMPERATURE: 0.7
GITHUB_TOKEN: ${{ secrets.GH_PAT }}| Account Type | Client ID | Client Secret | Quota | Input Limit | Output Limit |
|---|---|---|---|---|---|
| Free Trial | zekX2UMXId | 1/P5uT4+S`0-\19/o62m | 100 requests per day | 8000 tokens per request | 5000 tokens per request |
Note: The quota is reset at 00:00 UTC every day.
This action is marketplace-ready:
- Bundled with
@vercel/ncc - Branded icon & color
- Semantic versioning recommended (
v1,v1.1.0)
This action uses @vercel/ncc to bundle all dependencies into a single file.
npm install
npm run buildThis will generate dist/index.js which must be committed.
This project is licensed under the MIT License - see the LICENSE.md file for details.