feat(pull-requests): support native Gitea team reviewers - #21
feat(pull-requests): support native Gitea team reviewers#21kalvenschraut wants to merge 2 commits into
Conversation
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughChangesGitea team reviewer support
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: 🟡 Moderate · up to This adds native Gitea team reviewer support, but unresolved server schema-inference/typecheck corrections remain in the current change. Merge after those corrections are included or explicitly accepted. Sequence Diagram(s)sequenceDiagram
participant Viewer
participant GiteaPullRequestApi
participant GiteaTeamsEndpoint
participant GiteaPullRequestsEndpoint
Viewer->>GiteaPullRequestApi: Request reviewing pull requests
GiteaPullRequestApi->>GiteaTeamsEndpoint: Fetch paginated viewer teams
GiteaTeamsEndpoint-->>GiteaPullRequestApi: Return viewer team IDs
GiteaPullRequestApi->>GiteaPullRequestsEndpoint: Fetch pull requests
GiteaPullRequestsEndpoint-->>GiteaPullRequestApi: Return requested team reviewers
GiteaPullRequestApi-->>Viewer: Return matching reviewing pull requests
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai approve |
✅ Action performedComments resolved. Approval is disabled; enable |
Gitea reviewer selection now includes repository teams and sends native team-name review requests. The reviewing list includes PRs requested from the viewer’s teams, using paginated membership reads cached for one minute. Personal repositories continue listing user reviewers.
Keeps team membership inside the Gitea adapter and preserves shared user-reviewer models. Focused cases cover requested teams, native request payloads, personal repositories, and membership pagination; included in 228 passing focused T3 tests. The final integrated server typecheck and targeted lint pass with the stack follow-up #22.
Final stack validation at
256fd6fe5: 228 focused tests passed, followed by 61 API/workflow cases and the final team-recovery regression; server typecheck and targeted lint passed. The live settle-on-merge E2E previously passed with fixture cleanup. Companion Gitea backend and focused integration tests passed, including native revert across all five merge styles.Model: GPT-5.6 Terra and GPT-6 Astra. Harness: Codex; reviewed with Fable 5.1.
Summary by CodeRabbit
New Features
Bug Fixes