From 82d438dbc5efe15db889fdde7df882cdf4fff3ad Mon Sep 17 00:00:00 2001 From: ikae Date: Tue, 6 Oct 2026 19:58:50 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20Gemini=20=EB=A6=AC=EB=B7=B0=20?= =?UTF-8?q?=EC=9B=8C=ED=81=AC=ED=94=8C=EB=A1=9C=20=EB=AC=B8=EB=B2=95=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gemini-review.yml | 32 ++++++++++++++--------------- docs/project/work.md | 2 ++ 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/gemini-review.yml b/.github/workflows/gemini-review.yml index a2c96b1..5dd2e16 100644 --- a/.github/workflows/gemini-review.yml +++ b/.github/workflows/gemini-review.yml @@ -42,27 +42,27 @@ jobs: fi PROMPT=$(cat < Date: Tue, 6 Oct 2026 20:01:35 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20Gemini=20=EB=A6=AC=EB=B7=B0=20?= =?UTF-8?q?=EC=9B=8C=ED=81=AC=ED=94=8C=EB=A1=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gemini-review.yml | 82 ----------------------------- docs/project/work.md | 2 +- 2 files changed, 1 insertion(+), 83 deletions(-) delete mode 100644 .github/workflows/gemini-review.yml diff --git a/.github/workflows/gemini-review.yml b/.github/workflows/gemini-review.yml deleted file mode 100644 index 5dd2e16..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 <