From 2d3bdad8005ee79bb671225af1ba68d137ebc410 Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 14:28:48 -0500 Subject: [PATCH] - add ollama pipeline review --- .gitea/workflows/llm_pipeline_actions.yaml | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/llm_pipeline_actions.yaml diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml new file mode 100644 index 0000000..7a4d646 --- /dev/null +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -0,0 +1,36 @@ +name: 'Ollama Review' + +on: + pull_request: + types: [opened, review_requested] # PR open시 자동 코드 리뷰 요청 + +# permissions: +# contents: read # 콘텐츠 접근 권한 (PR 변경 사항 읽기) +# pull-requests: write # PR comment 작성 권한 + +jobs: + test-action: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run Container Action + uses: ljy2855/llm_code_reviewer@v1 + with: + # fixed field + github_token: ${{ secrets.TOKEN }} + github_owner: ${{ github.repository_owner }} + github_repository: ${{ github.repository }} + pr_number: ${{ github.event.pull_request.number }} + pr_title: ${{ github.event.pull_request.title }} + pr_body: ${{ github.event.pull_request.body }} + + # you might fill + ollama_api_url: ${{ secrets.OLLAMA_API_URL }} + + + # optional field + ollama_model: 'qwen2.5-coder:14b' + prompt_type: 'GENERAL_REVIEW' + prompt_language: 'EN'