# Automatic Code Merge Checks Based on Gitea and Ollama (open-webui)
If you need to review your merged code but prefer not to send it to a third party, or if your network environment is offline (unable to connect to third-party platforms), then this project is an ideal choice.
This project integrates Gitea and Ollama (open-webui) to automatically review merged code and push the results as comments to the corresponding merge requests, allowing developers or reviewers to reference them.
- **Description**: Whether to use Chinese for the review.
- **Default Value**: `"true"`
5.**token**:
- **Description**: A Personal Access Token (PAT) used to access the repository. It is recommended to use a service account with the least necessary permissions.
- **Default Value**: `${{ github.token }}`
6.**model**:
- **Description**: The AI model to use for the code review.
- **Required**: Yes
- **Default Value**: `'gemma2:2b'`
7.**host**:
- **Description**: The Ollama host address.
- **Required**: Yes
- **Default Value**: `'http://127.0.0.1:11434'`
8.**reviewers_prompt**:
- **Description**: Ollama's system prompt. It defines the parameters and expected format for the code review.
- **Required**: No
- **Default Value**: A detailed description text guiding the review generation process.
9.**ai_token**:
- **Description**: The AI access token.
- **Required**: No
- **Default Value**: `" "`
10.**include_files**:
- **Description**: A comma-separated list of files to include in the review.
- **Required**: No
- **Default Value**: `" "` (empty by default, no restrictions)
11.**exclude_files**:
- **Description**: A comma-separated list of files to exclude from the review.
- **Required**: No
- **Default Value**: `" "` (empty by default, no files passed)