You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/pull-review.yml
+51-2Lines changed: 51 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,30 @@ jobs:
60
60
echo "FAST_MODE=false" >> "$GITHUB_ENV"
61
61
fi
62
62
63
+
- name: Parse provider/model override
64
+
env:
65
+
COMMENT_BODY: ${{ github.event.comment.body }}
66
+
run: |
67
+
# Check for {{provider, model}} or {{provider, model, small_model}} override syntax after /review or /review_fast command
68
+
if [[ "$COMMENT_BODY" =~ ^[[:space:]]*/review(_fast)?[[:space:]]+\{\{[[:space:]]*([^,]+)[[:space:]]*,[[:space:]]*([^,}]+)[[:space:]]*(,[[:space:]]*([^}]+)[[:space:]]*)?\}\} ]]; then
69
+
PROVIDER=$(echo "${BASH_REMATCH[2]}" | xargs)
70
+
MODEL=$(echo "${BASH_REMATCH[3]}" | xargs)
71
+
SMALL_MODEL=$(echo "${BASH_REMATCH[5]}" | xargs)
72
+
# Validate provider and models contain only safe characters
0 commit comments