Files
devops-pipeline-template/.gitea/workflows/pr-review-template.yml
T

42 lines
1.2 KiB
YAML

name: PR Review With IVE
on:
workflow_call:
inputs:
review_project_rules:
descreption: "Repo based prompts"
required: true
type: "string"
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:
pr-review:
runs-on: ive
timeout-minutes: 300
steps:
- name: Run PR Review With IVE
env:
REVIEW_PROJECT_RULES: ${{inputs.review_project_rules}}
PULL_REQUEST_NUMBER: ${{inputs.pull_request_number}}
PULL_REQUEST_HTML: ${{inputs.pull_request_html}}
run: |
container="pr-review-$PULL_REQUEST_NUMBER"
docker rm -f "$container" 2>/dev/null || true
docker stop $container && timeout 300m docker run --rm --name "$container" \
-e LLM_BASE_URL="http://10.2.2.54:5625/v1" \
-e LLM_MODEL="ive-brain" \
-e GRAPH_PATH_REPO=".gitea/graphify-out/graph.json" \
-e $REVIEW_PROJECT_RULES \
pr-review-agent:local \
--pr-url=$PULL_REQUEST_HTML