Skip to content

Refactor NSS and DNSS implementations for improved readability and modularity #25

Refactor NSS and DNSS implementations for improved readability and modularity

Refactor NSS and DNSS implementations for improved readability and modularity #25

Workflow file for this run

# .github/workflows/pr-agent.yml
name: PR-Agent Auto Review (CLI)
on:
pull_request:
types: [opened, reopened, ready_for_review, synchronize]
issue_comment:
types: [created]
jobs:
pr_agent_job:
if: ${{ github.event.sender.type != 'Bot' }}
runs-on: self-hosted
permissions:
issues: write
pull-requests: write
contents: write
steps:
- name: Run PR-Agent
env:
# CLI 방식은 __ (double underscore) 형식
GITHUB__USER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI__KEY: "sk-dummy"
OPENAI__API_BASE: "http://localhost:8888/v1"
CONFIG__MODEL: "openai/Qwen/Qwen3-Coder-Next-FP8"
CONFIG__MODEL_TURBO: "openai/Qwen/Qwen3-Coder-Next-FP8"
CONFIG__FALLBACK_MODELS: '["openai/Qwen/Qwen3-Coder-Next-FP8"]'
CONFIG__CUSTOM_MODEL_MAX_TOKENS: "32768"
CONFIG__RESPONSE_LANGUAGE: "ko-KR"
PR_REVIEWER__NUM_CODE_SUGGESTIONS: "3"
PR_REVIEWER__REQUIRE_SECURITY_REVIEW: "true"
PR_REVIEWER__EXTRA_INSTRUCTIONS: "버그, 성능 문제, 메모리 누수를 분석해주세요."
PR_CODE_SUGGESTIONS__NUM_CODE_SUGGESTIONS: "5"
PR_CODE_SUGGESTIONS__EXTRA_INSTRUCTIONS: "구체적인 코드 수정안을 제시해주세요."
PR_DESCRIPTION__PUBLISH_LABELS: "true"
PR_DESCRIPTION__ADD_ORIGINAL_USER_DESCRIPTION: "true"
run: |
source ~/pr-agent-env/bin/activate
if [ "${{ github.event_name }}" == "pull_request" ]; then
PR_URL="${{ github.event.pull_request.html_url }}"
else
# issue_comment 이벤트 — PR URL 추출
PR_URL="${{ github.event.issue.pull_request.html_url }}"
fi
echo "PR URL: $PR_URL"
# 자동 실행: describe → review → improve
pr-agent --pr_url "$PR_URL" describe
pr-agent --pr_url "$PR_URL" review
pr-agent --pr_url "$PR_URL" improve