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
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
[English version](README.md)
|
||||||
|
|
||||||
# Создание технического аккаунта для Code Review
|
# Создание технического аккаунта для Code Review
|
||||||
|
|
||||||
## 1. Создание локального пользователя в Gitea
|
## 1. Создание локального пользователя в Gitea
|
||||||
|
|||||||
47
README.md
47
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`.<br>
|
## 3. Generate a PAT with Minimal Permissions
|
||||||
Сохраните возвращённое значение PAT в защищённом месте.
|
|
||||||
|
|
||||||
## 4. Смена пароля созданного пользователя
|
Generate a Personal Access Token (PAT) with the minimum required permissions using the PowerShell script `Create-PAT.ps1`.<br>
|
||||||
|
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
|
### Secrets
|
||||||
|
|
||||||
- `CC_GITEATOKEN` — PAT пользователя `reviewer`
|
- `CC_GITEATOKEN` — PAT of the `reviewer` user
|
||||||
- `CC_API_KEY` — ключ авторизации для LLM OpenAI API (`sk-***`)
|
- `CC_API_KEY` — authorization key for LLM OpenAI API (`sk-***`)
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
- `CC_BASE_URL` — URL LiteLLM Proxy (по умолчанию: `http://llm.developertools.com`)
|
- `CC_BASE_URL` — URL of LiteLLM Proxy (default: `http://llm.developertools.com`)
|
||||||
- `CC_MODEL` — модель по умолчанию (по умолчанию: `/int/reviewer/default`)
|
- `CC_MODEL` — default model (default: `/int/reviewer/default`)
|
||||||
|
|
||||||
### Применение настроек
|
### Applying Settings
|
||||||
|
|
||||||
Пропишите секреты и переменные на уровне организации с помощью скрипта `Set-GiteaOrgActionItem.ps1`.<br>
|
Configure secrets and variables at the organization level using the script `Set-GiteaOrgActionItem.ps1`.<br>
|
||||||
Предварительно определите переменную окружения: `$Env:AdminGiteaManagePAT`
|
First, define the environment variable: `$Env:AdminGiteaManagePAT`
|
||||||
|
|
||||||
**Пример запуска в powershell:**
|
**Example PowerShell command:**
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
$Env:AdminGiteaManagePAT = "your-token"
|
$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_GITEATOKEN" -Password "f79....c1c"
|
||||||
.\Set-GiteaOrgActionItem.ps1 -Org $Org -VarName "CC_API_KEY" -Password "sk-F..6-k..g"
|
.\Set-GiteaOrgActionItem.ps1 -Org $Org -VarName "CC_API_KEY" -Password "sk-F..6-k..g"
|
||||||
```
|
```
|
||||||
## 6. Предоставление доступа пользователю `kodobot`
|
|
||||||
|
|
||||||
Добавьте пользователя на уровне организации в группу Developers или на уровне репозитория в Collaborators с правами write
|
## 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
|
||||||
Reference in New Issue
Block a user