Skip to content

hashira-studio/katana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rebotai

Rebotai is a GitHub bot powered by OpenAI that performs code reviews on pull requests.

Usage

To integrate Rebotai into your GitHub repository, follow these steps:

  1. Add Repository Secrets: Go to your repository settings and add the following secrets:

    • GH_TOKEN: Your GitHub token
    • OPENAI_API_KEY: Your OpenAI API key
  2. Add 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)
  3. 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 }}

Example Responses

Here are examples of responses in different languages based on the configured LANGUAGE variable:

Japanese

language: ${{ vars.LANGUAGE }} # japan

Japanese Response

Indonesian

language: ${{ vars.LANGUAGE }} # indonesia

Indonesian Response

English

language: ${{ vars.LANGUAGE }} # english

English Response

Contributing

We welcome contributions! Please feel free to submit issues or pull requests to improve Rebotai.

License

This project is licensed under the MIT License.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy