diff --git a/.github/workflows/gemini-review.yml b/.github/workflows/gemini-review.yml deleted file mode 100644 index a2c96b1..0000000 --- a/.github/workflows/gemini-review.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: Gemini PR Code Review - -on: - issue_comment: - types: [created] - -permissions: - contents: read - pull-requests: write - issues: write - -jobs: - review: - if: github.event.issue.pull_request && contains(github.event.comment.body, '/gemini-review') - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v7 - - - name: Run Gemini Review via REST API - env: - GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_NUMBER: ${{ github.event.issue.number }} - REPO: ${{ github.repository }} - run: | - if [ -z "$GEMINI_API_KEY" ]; then - echo "::error::GEMINI_API_KEY secret is empty." - exit 1 - fi - - PR_JSON=$(gh pr view "$PR_NUMBER" --repo "$REPO" --json title,body) - PR_TITLE=$(echo "$PR_JSON" | jq -r '.title') - PR_BODY=$(echo "$PR_JSON" | jq -r '.body' | head -c 2500) - - # PR Diff 추출 (backend/src Java 코드 위주) - PR_DIFF=$(gh pr diff "$PR_NUMBER" --repo "$REPO" | head -c 12000) - - if [ -z "$PR_DIFF" ]; then - PR_DIFF="리뷰할 코드 변경점이 없습니다." - fi - - PROMPT=$(cat <