Fix for a limitation discovered after PR #68 was merged: the tea CLI v0.14.1 only supports interactive reviews (no --approve or --comment flags), so review_pr.py cannot use tea pulls review for posting reviews.
Changes
Revert scripts/ci/review_pr.py to use GiteaClient.create_review() instead of TeaCLI.review_pr()
Update tests/unit/test_review_pr.py to mock GiteaClient instead of TeaCLI
Update AGENTS.md to reflect that review_pr.py uses GiteaClient (tea v0.14.1 is interactive-only)
Update PYTHONPATH table in AGENTS.md to move review_pr.py back to src only
Note
The TeaCLI.review_pr() method remains in scripts/gitea_cli.py for future use when tea adds non-interactive review support.
All 838 tests pass with 100% coverage.
## Summary
Fix for a limitation discovered after PR #68 was merged: the `tea` CLI v0.14.1 only supports interactive reviews (no `--approve` or `--comment` flags), so `review_pr.py` cannot use `tea pulls review` for posting reviews.
## Changes
- Revert `scripts/ci/review_pr.py` to use `GiteaClient.create_review()` instead of `TeaCLI.review_pr()`
- Update `tests/unit/test_review_pr.py` to mock `GiteaClient` instead of `TeaCLI`
- Update `AGENTS.md` to reflect that `review_pr.py` uses `GiteaClient` (tea v0.14.1 is interactive-only)
- Update PYTHONPATH table in `AGENTS.md` to move `review_pr.py` back to `src` only
## Note
The `TeaCLI.review_pr()` method remains in `scripts/gitea_cli.py` for future use when tea adds non-interactive review support.
All 838 tests pass with 100% coverage.
## Automated PR Review
- Architecture compliance: OK
- Best practices: OK
- Security: OK
- Documentation: OK
- Tests: OK
- Commit conventions: OK
No issues found by automated checks.
---
**Manual review required:** Before approving, review every category in
[REVIEW_CHECKLIST.md](REVIEW_CHECKLIST.md) and confirm with:
```bash
python3 scripts/ci/review_pr.py <PR> <owner/repo> \
--event APPROVE --checklist-confirmed \
--body "<substantive review summary>"
```
emil
merged commit c03b349dd5 into master2026-06-22 07:11:21 +00:00
emil
deleted branch GRM-54-fix-review-pr-fallback2026-06-22 07:11:21 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Fix for a limitation discovered after PR #68 was merged: the
teaCLI v0.14.1 only supports interactive reviews (no--approveor--commentflags), soreview_pr.pycannot usetea pulls reviewfor posting reviews.Changes
scripts/ci/review_pr.pyto useGiteaClient.create_review()instead ofTeaCLI.review_pr()tests/unit/test_review_pr.pyto mockGiteaClientinstead ofTeaCLIAGENTS.mdto reflect thatreview_pr.pyusesGiteaClient(tea v0.14.1 is interactive-only)AGENTS.mdto movereview_pr.pyback tosrconlyNote
The
TeaCLI.review_pr()method remains inscripts/gitea_cli.pyfor future use when tea adds non-interactive review support.All 838 tests pass with 100% coverage.
Automated PR Review
No issues found by automated checks.
Manual review required: Before approving, review every category in
REVIEW_CHECKLIST.md and confirm with: