update
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 32s
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 32s
This commit is contained in:
@@ -1,21 +1,23 @@
|
||||
# Workflows
|
||||
|
||||
This document provides ready-to-use workflow files for integrating AI code review into your repositories. Workflows are provided for both **GitHub Actions** and **Gitea Actions**.
|
||||
This document provides ready-to-use workflow files for integrating AI code review into your Gitea repositories.
|
||||
|
||||
---
|
||||
|
||||
## Platform Comparison
|
||||
## Gitea Workflows Overview
|
||||
|
||||
| Feature | GitHub | Gitea |
|
||||
|---------|--------|-------|
|
||||
| Context variable | `github.*` | `gitea.*` |
|
||||
| Default token | `GITHUB_TOKEN` | `AI_REVIEW_TOKEN` (custom) |
|
||||
| API URL | `https://api.github.com` | Your Gitea instance URL |
|
||||
| Tools location | Same repo (`tools/ai-review`) | Checkout from central repo |
|
||||
| Feature | Configuration |
|
||||
|---------|--------------|
|
||||
| Context variable | `gitea.*` |
|
||||
| Token | `AI_REVIEW_TOKEN` (custom secret) |
|
||||
| API URL | Your Gitea instance URL (e.g., `https://git.example.com/api/v1`) |
|
||||
| Tools location | Checkout from central OpenRabbit repo |
|
||||
|
||||
All workflows are located in `.gitea/workflows/` directory.
|
||||
|
||||
---
|
||||
|
||||
## GitHub Workflows
|
||||
## Gitea Workflows
|
||||
|
||||
### PR Review Workflow
|
||||
|
||||
@@ -99,7 +101,7 @@ on:
|
||||
jobs:
|
||||
ai-reply:
|
||||
runs-on: ubuntu-latest
|
||||
if: contains(github.event.comment.body, '@ai-bot')
|
||||
if: contains(github.event.comment.body, '@codebot')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -256,7 +258,7 @@ on:
|
||||
jobs:
|
||||
ai-reply:
|
||||
runs-on: ubuntu-latest
|
||||
if: contains(github.event.comment.body, '@ai-bot')
|
||||
if: contains(github.event.comment.body, '@codebot')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -377,13 +379,13 @@ AI_REVIEW_API_URL: https://your-gitea.example.com/api/v1
|
||||
|
||||
## Chat/Bartender Workflow
|
||||
|
||||
Both platforms support the Bartender chat agent through the comment reply workflow. When `@ai-bot` is mentioned with a question (not a specific command like `summarize`), the Chat Agent handles it with tool calling capabilities.
|
||||
Both platforms support the Bartender chat agent through the comment reply workflow. When `@codebot` is mentioned with a question (not a specific command like `summarize`), the Chat Agent handles it with tool calling capabilities.
|
||||
|
||||
To enable web search, set the `SEARXNG_URL` secret to your SearXNG instance URL.
|
||||
|
||||
**Example usage:**
|
||||
```
|
||||
@ai-bot How do I configure rate limiting?
|
||||
@ai-bot Find all authentication-related files
|
||||
@ai-bot What does the dispatcher module do?
|
||||
@codebot How do I configure rate limiting?
|
||||
@codebot Find all authentication-related files
|
||||
@codebot What does the dispatcher module do?
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user