Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,21 @@ jobs:
- name: Install pi-relay
id: relay
run: |
npm install -g github:benaiad/pi-relay
echo "plan_dir=$(npm root -g)/pi-relay/bundled/ci" >> "$GITHUB_OUTPUT"
git clone --depth=1 https://github.com/benaiad/pi-relay.git /tmp/pi-relay
cd /tmp/pi-relay && npm ci && npm run build
echo "root=/tmp/pi-relay" >> "$GITHUB_OUTPUT"

- name: Run PR review
run: |
relay bundled/ci/pr-review.md \
node ${{ steps.relay.outputs.root }}/dist/cli/main.js \
bundled/ci/pr-review.md \
-e pr_number="${{ github.event.pull_request.number }}" \
--model "$RELAY_MODEL" \
--thinking "${RELAY_THINKING:-off}"
env:
RELAY_MODEL: ${{ secrets.RELAY_MODEL }}
RELAY_THINKING: ${{ secrets.RELAY_THINKING }}
RELAY_PLAN_DIR: ${{ steps.relay.outputs.plan_dir }}
RELAY_PLAN_DIR: ${{ steps.relay.outputs.root }}/bundled/ci
GH_TOKEN: ${{ github.token }}
# Add your provider's API key secret below. Name depends on provider:
# zai → ZAI_API_KEY, anthropic → ANTHROPIC_API_KEY, openai → OPENAI_API_KEY
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"workflow",
"dag",
"planning",
"agent"
"agent",
"automation"
],
"dependencies": {
"yaml": "^2.8.3"
Expand Down
Loading