Skip to content

YangYang-Research/yang-code-review

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Yang Code Review (YCR)

Yang Code Review (YCR) is a AI agent that helps you review code changes in your GitHub repositories.

🛡 Security

  • CLIENT_ID and CLIENT_SECRET are masked automatically in GitHub Actions logs

🔐 Required Secrets

  • CLIENT_ID – Client ID for authentication with the YangYang API service
  • CLIENT_SECRET – Client secret for authentication with the YangYang API service
  • GITHUB_TOKEN – GitHub token for PR comments

⚙️ Inputs

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

Models Supported

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

Agents Supported

Agent Name Description
yang-code-review YangYang Code Review

🚀 Usage Example

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 }}

Free Trial

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.

🏷 Marketplace

This action is marketplace-ready:

  • Bundled with @vercel/ncc
  • Branded icon & color
  • Semantic versioning recommended (v1, v1.1.0)

🏗 Build (Required)

This action uses @vercel/ncc to bundle all dependencies into a single file.

npm install
npm run build

This will generate dist/index.js which must be committed.

📝 License

This project is licensed under the MIT License - see the LICENSE.md file for details.