Fixing pr review agent inputs

This commit is contained in:
2026-08-24 16:02:49 +03:00
parent d5f0d85e74
commit 92f8ff9586
+15 -6
View File
@@ -8,24 +8,33 @@ on:
required: true required: true
type: "string" type: "string"
default: "" default: ""
pull_request_number:
descreption: "pull request number"
required: true
type: "string"
pull_request_html:
descreption: "string html for pull request"
required: true
type: "string"
jobs: jobs:
pr-review: pr-review:
if: >-
github.event.pull_request.draft == false &&
github.event.sender.type != 'Bot'
runs-on: ive runs-on: ive
timeout-minutes: 300 timeout-minutes: 300
env: env:
REVIEW_PROJECT_RULES: ${{inputs.review_project_rules}} REVIEW_PROJECT_RULES: ${{inputs.review_project_rules}}
PULL_REQUEST_NUMBER: ${{inputs.pull_request_number}}
PULL_REQUEST_HTML: ${{inputs.pull_request_html}}
steps: steps:
- name: Run PR Review With IVE - name: Run PR Review With IVE
run: | run: |
container="pr-review-${{ github.event.pull_request.number }}" container="pr-review-$PULL_REQUEST_NUMBER"
docker rm -f "$container" 2>/dev/null || true docker rm -f "$container" 2>/dev/null || true
timeout 300m docker run --rm --name "$container" \ docker stop $container && timeout 300m docker run --rm --name "$container" \
-e LLM_BASE_URL="http://10.2.2.54:5625/v1" \ -e LLM_BASE_URL="http://10.2.2.54:5625/v1" \
-e LLM_MODEL="ive-brain" \ -e LLM_MODEL="ive-brain" \
-e GRAPH_PATH_REPO=".gitea/graphify-out/graph.json" \ -e GRAPH_PATH_REPO=".gitea/graphify-out/graph.json" \
-e $REVIEW_PROJECT_RULES \ -e $REVIEW_PROJECT_RULES \
pr-review-agent:local \ pr-review-agent:local \
--pr-url="${{ github.event.pull_request.html_url }}" --pr-url="$PULL_REQUEST_HTML"