Rebotai is a GitHub bot powered by OpenAI that performs code reviews on pull requests.
To integrate Rebotai into your GitHub repository, follow these steps:
Add Repository Secrets: Go to your repository settings and add the following secrets:
GH_TOKEN
: Your GitHub tokenOPENAI_API_KEY
: Your OpenAI API keyAdd Repository Variables: Add the following variables:
MODEL
: The OpenAI model to use (e.g., gpt-3.5-turbo
)LANGUAGE
: The preferred language for responses (e.g., indonesia
)Add GitHub Actions Workflow:
Create a new GitHub Actions workflow file (e.g., .github/workflows/rebotai.yml
) with the following content:
name: Rebotai Code Review
on:
issue_comment:
types: [created]
jobs:
code_review:
if: >
github.event.issue.pull_request != null &&
contains(github.event.comment.body, '/review')
runs-on: ubuntu-latest
steps:
- uses: fiqryq/rebotai@{version}
with:
gh-token: ${{ secrets.GH_TOKEN }}
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
model: ${{ vars.MODEL }}
language: ${{ vars.LANGUAGE }}
Here are examples of responses in different languages based on the configured LANGUAGE
variable:
language: ${{ vars.LANGUAGE }} # japan
language: ${{ vars.LANGUAGE }} # indonesia
language: ${{ vars.LANGUAGE }} # english
We welcome contributions! Please feel free to submit issues or pull requests to improve Rebotai.
This project is licensed under the MIT License.