Skip to content

Commit 371d15a

Browse files
committed
fix port
1 parent 20f3ef0 commit 371d15a

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/pr-agent.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,32 @@ jobs:
2020
env:
2121
GITHUB__USER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
OPENAI__KEY: ${{ secrets.OPENAI_KEY }}
23-
OPENAI__API_BASE: "http://localhost:8000/v1"
23+
OPENAI__API_BASE: "http://localhost:8888/v1"
2424

25-
# 모델명 변경
2625
CONFIG__MODEL: "openai/Qwen/Qwen3-Coder-Next-FP8"
2726
CONFIG__MODEL_TURBO: "openai/Qwen/Qwen3-Coder-Next-FP8"
2827
CONFIG__FALLBACK_MODELS: '["openai/Qwen/Qwen3-Coder-Next-FP8"]'
2928
CONFIG__CUSTOM_MODEL_MAX_TOKENS: "32768"
30-
CONFIG__DUPLICATE_EXAMPLES: "true"
31-
29+
30+
# 리뷰 상세도 높이기
31+
PR_REVIEWER__NUM_CODE_SUGGESTIONS: "5"
32+
PR_REVIEWER__INLINE_CODE_COMMENTS: "true"
33+
PR_REVIEWER__REQUIRE_SCORE_REVIEW: "true"
34+
PR_REVIEWER__REQUIRE_TESTS_REVIEW: "true"
35+
PR_REVIEWER__REQUIRE_SECURITY_REVIEW: "true"
36+
PR_REVIEWER__REQUIRE_ESTIMATE_EFFORT_TO_REVIEW: "true"
37+
PR_REVIEWER__PERSISTENT_COMMENT: "true"
38+
PR_REVIEWER__EXTRA_INSTRUCTIONS: "코드의 버그, 성능 문제, 메모리 누수, 스레드 안전성 문제를 자세히 분석해주세요. 각 이슈에 대해 구체적인 수정 방법도 제안해주세요."
3239

3340
run: |
3441
source ~/pr-agent-env/bin/activate
35-
pr-agent --pr_url "${{ github.event.pull_request.html_url }}" review
42+
43+
# PR URL 결정 (pull_request vs issue_comment 이벤트)
44+
if [ "${{ github.event_name }}" == "pull_request" ]; then
45+
PR_URL="${{ github.event.pull_request.html_url }}"
46+
else
47+
PR_URL="${{ github.event.issue.pull_request.url }}"
48+
fi
49+
50+
echo "PR URL: $PR_URL"
51+
pr-agent --pr_url "$PR_URL" review

0 commit comments

Comments
 (0)