name: AI Comment Reply on: issue_comment: types: [created] # CUSTOMIZE YOUR BOT NAME: # Change '@ai-bot' below to match your config.yml mention_prefix # Examples: '@bartender', '@uni', '@joey', '@codebot' jobs: ai-reply: runs-on: ubuntu-latest if: contains(github.event.comment.body, '@codebot') # <-- Change this to your bot name steps: - uses: actions/checkout@v4 - uses: actions/checkout@v4 with: repository: Hiddenden/openrabbit path: .ai-review token: ${{ secrets.AI_REVIEW_TOKEN }} - uses: actions/setup-python@v5 with: python-version: "3.11" - run: pip install requests pyyaml - name: Run AI Comment Response env: AI_REVIEW_TOKEN: ${{ secrets.AI_REVIEW_TOKEN }} AI_REVIEW_REPO: ${{ gitea.repository }} AI_REVIEW_API_URL: https://git.hiddenden.cafe/api/v1 OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} OLLAMA_HOST: ${{ secrets.OLLAMA_HOST }} run: | cd .ai-review/tools/ai-review python main.py comment ${{ gitea.repository }} ${{ gitea.event.issue.number }} \ "${{ gitea.event.comment.body }}"