如果想在 V2EX 获得更好的推广效果,欢迎了解 PRO 会员机制:
https://www.v2ex.com/pro/about

如果你经常使用铜币置顶主题,持有 V2EX Solana Token 会在每日签到时获得额外铜币:
https://www.v2ex.com/solana
kekxv
0D
V2EX  ›  推广

有使用 gitea 的吗?试试这个 基于 Gitea 和 Ollama (open-webui) 的代码合并(PR)自动检查

  •  
  •   kekxv · Jan 19, 2025 · 1197 views
    This topic created in 477 days ago, the information mentioned may be changed or developed.

    当开启 PR 的时候,将会自动获取修改点,并请求 Ollama ,让其给出分析,是否有明显漏洞以及 api key 等问题。

    使用方式简单:

    name: ai-reviews
    
    on:
      pull_request:
        types: [opened, synchronize]
    
    jobs:
      review:
        name: Review PR
        runs-on: ubuntu-latest
    
        steps:
          - name: Checkout code
            uses: actions/checkout@v4
            with:
              fetch-depth: 0
          - name: Review code
            uses: kekxv/[email protected]
            with:
              model: 'gemma2:2b'
              host: ${{ vars.OLLAMA_HOST }}
              ai_token: ${{ secrets.AI_TOKEN }}
              REVIEW_PULL_REQUEST: false
              exclude_files: |
                ^.+\.md
                test2\.js
    

    相关链接 https://github.com/marketplace/actions/ai-code-reviewer-aireviewpr

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1031 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 19:24 · PVG 03:24 · LAX 12:24 · JFK 15:24
    ♥ Do have faith in what you're doing.