Skip to content

Code review powered by LLMs (OpenAI GPT4, Sonnet 3.5) & Embeddings ⚡️ Improve code quality and catch bugs before you break production 🚀 Lives in your Github/GitLab/Azure DevOps CI

License

Notifications You must be signed in to change notification settings

forproxyband/code-review-gpt

 
 

Repository files navigation

Code Review GPT

Добавить в нужный репозиторий экшен

name: Code Review GPT

permissions:
  pull-requests: write
  contents: write
  issues: write

on:
# Запуск при любом пулреквесте
  pull_request:
# Запуск при любом коммите
  push:

  # Вызов из другого workflow
  workflow_call:
    inputs:
      target_branch:
        required: false
        default: ""
        type: string
  # Ручной запуск
  workflow_dispatch:
    inputs:
      target_branch:
        description: "Целевая ветка для сравнения (по умолчанию текущая)"
        required: false
  # Запуск через внешний webhook
  repository_dispatch:
    types: [ run_code_review ]

jobs:
  run_code_review:
    runs-on: self-hosted
    steps:
      - uses: forproxyband/code-review-gpt@main
        with:
          openai_api_key: ${{ secrets.OPENAI_API_KEY }}
          github_token: ${{ github.token }}
          target_branch: ${{ github.event.inputs.target_branch }}
          jira_token: ${{ secrets.JIRA_TOKEN_1Y }}
          jira_user: ${{ secrets.JIRA_TOKEN_USER }}
          jira_base_url: ${{ secrets.JIRA_BASE_URL }}

About

Code review powered by LLMs (OpenAI GPT4, Sonnet 3.5) & Embeddings ⚡️ Improve code quality and catch bugs before you break production 🚀 Lives in your Github/GitLab/Azure DevOps CI

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%