From 2b954419de1929139fb92d7e96086d52cc0a6ef6 Mon Sep 17 00:00:00 2001 From: Nikolay Buslaev Date: Thu, 12 Mar 2026 14:34:27 +0100 Subject: [PATCH] Add language links and translate README to English - Add link to Russian version at the beginning of README.md - Add link to English version at the beginning of README-rus.md - Translate README content from Russian to English --- README-rus.md | 2 ++ README.md | 47 +++++++++++++++++++++++++---------------------- 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/README-rus.md b/README-rus.md index eb65d77..c59d426 100644 --- a/README-rus.md +++ b/README-rus.md @@ -1,3 +1,5 @@ +[English version](README.md) + # Создание технического аккаунта для Code Review ## 1. Создание локального пользователя в Gitea diff --git a/README.md b/README.md index 74e3792..b480143 100644 --- a/README.md +++ b/README.md @@ -1,42 +1,44 @@ -# Создание технического аккаунта для Code Review +[Russian version](README-rus.md) -## 1. Создание локального пользователя в Gitea +# Setting Up a Technical Account for Code Review -Создайте локального пользователя в Gitea с рекомендуемым именем: `kodobot` +## 1. Create a Local User in Gitea -## 2. Сохранение временного пароля +Create a local user in Gitea with the recommended name: `kodobot` -При создании пользователя задайте временный пароль и сохраните его в защищённом месте. +## 2. Save the Temporary Password -## 3. Генерация PAT с минимальными правами +When creating the user, set a temporary password and store it in a secure location. -Сгенерируйте Personal Access Token (PAT) с минимально необходимыми правами, используя PowerShell-скрипт `Create-PAT.ps1`.
-Сохраните возвращённое значение PAT в защищённом месте. +## 3. Generate a PAT with Minimal Permissions -## 4. Смена пароля созданного пользователя +Generate a Personal Access Token (PAT) with the minimum required permissions using the PowerShell script `Create-PAT.ps1`.
+Save the returned PAT value in a secure location. -После успешного создания PAT смените пароль у созданного пользователя для безопасности. +## 4. Change the Password of the Created User -## 5. Настройка секретов и переменных организации +After successfully creating the PAT, change the password of the created user for security. -На уровне организации определите секреты и переменные, необходимые для функционирования Code Reviewer. +## 5. Configure Organization Secrets and Variables + +At the organization level, define the secrets and variables necessary for the Code Reviewer to function. ### Secrets -- `CC_GITEATOKEN` — PAT пользователя `reviewer` -- `CC_API_KEY` — ключ авторизации для LLM OpenAI API (`sk-***`) +- `CC_GITEATOKEN` — PAT of the `reviewer` user +- `CC_API_KEY` — authorization key for LLM OpenAI API (`sk-***`) ### Variables -- `CC_BASE_URL` — URL LiteLLM Proxy (по умолчанию: `http://llm.developertools.com`) -- `CC_MODEL` — модель по умолчанию (по умолчанию: `/int/reviewer/default`) +- `CC_BASE_URL` — URL of LiteLLM Proxy (default: `http://llm.developertools.com`) +- `CC_MODEL` — default model (default: `/int/reviewer/default`) -### Применение настроек +### Applying Settings -Пропишите секреты и переменные на уровне организации с помощью скрипта `Set-GiteaOrgActionItem.ps1`.
-Предварительно определите переменную окружения: `$Env:AdminGiteaManagePAT` +Configure secrets and variables at the organization level using the script `Set-GiteaOrgActionItem.ps1`.
+First, define the environment variable: `$Env:AdminGiteaManagePAT` -**Пример запуска в powershell:** +**Example PowerShell command:** ```powershell $Env:AdminGiteaManagePAT = "your-token" @@ -46,6 +48,7 @@ $Org = "wyn-core" .\Set-GiteaOrgActionItem.ps1 -Org $Org -VarName "CC_GITEATOKEN" -Password "f79....c1c" .\Set-GiteaOrgActionItem.ps1 -Org $Org -VarName "CC_API_KEY" -Password "sk-F..6-k..g" ``` -## 6. Предоставление доступа пользователю `kodobot` -Добавьте пользователя на уровне организации в группу Developers или на уровне репозитория в Collaborators с правами write \ No newline at end of file +## 6. Grant Access to the `kodobot` User + +Add the user at the organization level to the Developers group or at the repository level to Collaborators with write permissions \ No newline at end of file