https://github.com/amalhanaja/codebleu
AI Pull Request / Merge Request Reviewer
https://github.com/amalhanaja/codebleu
ai merge-request pr-review pull-request pull-request-review reviewer
Last synced: 9 months ago
JSON representation
AI Pull Request / Merge Request Reviewer
- Host: GitHub
- URL: https://github.com/amalhanaja/codebleu
- Owner: amalhanaja
- License: mit
- Created: 2024-06-24T23:57:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-07T04:59:58.000Z (almost 2 years ago)
- Last Synced: 2025-02-26T09:09:56.818Z (over 1 year ago)
- Topics: ai, merge-request, pr-review, pull-request, pull-request-review, reviewer
- Language: Go
- Homepage:
- Size: 52.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Codebleu: Powerful Pull Request/Merge Request Reviewer
Streamline your code review workflow with Codebleu, a powerful tool that assists you in reviewing pull request (PR) or merge request (MR) changes. Leveraging Gemini AI, Codebleu provides valuable insights and potential issues to consider, empowering you to conduct more efficient and effective code reviews.
```bash
NAME:
Codebleu - Review PR / MR Diff Changes
USAGE:
Codebleu [global options] command [command options]
VERSION:
v0.0.1
DESCRIPTION:
Pull Request / Merge Request reviewer agent
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--model value, -m value uses model to review pull request (options: "gemini-1.5-flash" (default), "gemini-1.5-pro", "gemini-1.0-pro") (default: "gemini-1.5-flash") [$MODEL]
--repository value, -r value hosted remote repository provider name (options: "bitbucket", "github") [$REPOSITORY_PROVIDER]
--id value pull request id [$PULL_REQUEST_ID]
--system-instruction value Custom system instruction for review pull request diff chages [$SYSTEM_INSTRUCTION]
--help, -h show help
--version, -v print the version
```
### Example
- **Bitbucket**: [Pull Request](https://bitbucket.org/amalhanaja/test/pull-requests/8)
- **Github**: [Pull Request](https://github.com/amalhanaja/codebleu/pull/1)
## [Get Codebleu](https://github.com/amalhanaja/codebleu/releases)
## Usage
### Github
#### Configure Environment Variable
```bash
export GH_ACCESS_TOKEN=
export GH_OWNER=
export GH_REPO_SLUG=
export GEMINI_API_KEY=
```
#### Command
```bash
codebleu --repository github --id
```
#### Example:
Pull Request Url to review : https://github.com/amalhanaja/codebleu/pull/1
**Environment Variable**
```bash
export GH_ACCESS_TOKEN="secret_access_token"
export GH_OWNER="amalhanaja"
export GH_REPO_SLUG="codebleu"
export GEMINI_API_KEY="secret_api_key"
```
**Command**
```bash
codebleu --repository github --id 1
```
### Bitbucket
#### Configure Environment Variable
```bash
export BITBUCKET_ACCESS_TOKEN=
export BITBUCKET_REPO_SLUG=
export BITBUCKET_WORKSPACE=
export GEMINI_API_KEY=
```
#### Command
```bash
codebleu --repository github --id
```
#### Example:
Pull Request Url to review : https://bitbucket.org/amalhanaja/test/pull-requests/8
**Environment Variable**
```bash
export BITBUCKET_ACCESS_TOKEN="secret_access_token"
export BITBUCKET_WORKSPACE="amalhanaja"
export BITBUCKET_REPO_SLUG="test"
export GEMINI_API_KEY="secret_api_key"
```
**Command**
```bash
codebleu --repository bitbucket --id 8
```