GitLab merge request code review tool with AI-powered analysis
npm install job51-gitlab-cr-nodebash
npm install -g gitlab-cr-node
`
使用方法
$3
在使用前需要设置以下环境变量:
`bash
export CI_API_V4_URL="https://your-gitlab-instance.com/api/v4"
export GITLAB_ACCESS_TOKEN="your_gitlab_access_token"
export CI_PROJECT_ID="your_project_id"
export CI_MERGE_REQUEST_IID="your_merge_request_iid"
`
或者在 Windows PowerShell 中:
`powershell
$env:CI_API_V4_URL="https://your-gitlab-instance.com/api/v4"
$env:GITLAB_ACCESS_TOKEN="your_gitlab_access_token"
$env:CI_PROJECT_ID="your_project_id"
$env:CI_MERGE_REQUEST_IID="your_merge_request_iid"
`
$3
设置好环境变量后,运行:
`bash
gitlab-cr
``