No actionable comments were generated in the recent review.
External image Recent review info
External image Run configuration
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: e57c093
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
6512f604-9d53-4b46-9bc5-04a6f5114aa7
External image Commits
Reviewing files that changed from the base of the PR and between e57c093cdd9032355c6251dd7192280b915b7a23 and 0f65b2722e9da8c258221309c945d6af2ac4fb81.
External image Files selected for processing: 5
apps/server/src/git/GitManager.test.tsapps/server/src/git/GitManager.tspackages/source-control-core/src/server/SourceControlProvider.tspackages/source-control-forgejo/src/server/ForgejoSourceControlProvider.test.tspackages/source-control-forgejo/src/server/ForgejoSourceControlProvider.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Walkthrough
Forgejo now caches complete repository pull-request scans for one minute and filters cached results for branch lookups. GitManager passes cache permission to providers and disables provider-cached results on refresh paths.
Changes: Forgejo pull-request lookups
Layer / File(s) Summary Repository scan cache and filtering
packages/source-control-core/src/server/SourceControlProvider.ts,packages/source-control-forgejo/src/server/ForgejoSourceControlProvider.ts,packages/source-control-forgejo/src/server/ForgejoSourceControlProvider.test.tsThe provider accepts an allowCachedoption and caches successful complete scans for one minute, with capacity for 16 entries. It filters results by branch, optional source repository and owner, and state. Tests cover cache expiry and bypass, cache identity, pagination, failures, and concurrent lookups.GitManager cache policy
apps/server/src/git/GitManager.ts,apps/server/src/git/GitManager.test.tsGitManager passes cache permission through pull-request lookups and disables provider-cached results when refreshing or retrying after a repository identity change. A Gitea test covers paginated branch lookup and refreshed results. Priority: External image Normal
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Medium
Sequence Diagram(s)
mermaid1 sequenceDiagram 2 participant GitManager 3 participant ForgejoSourceControlProvider 4 participant ForgejoAPI 5 GitManager->>ForgejoSourceControlProvider: Request pull requests with allowCached 6 ForgejoSourceControlProvider->>ForgejoSourceControlProvider: Check cached scan and filter results 7 ForgejoSourceControlProvider->>ForgejoAPI: Fetch pull-request pages when a scan is needed 8 ForgejoAPI-->>ForgejoSourceControlProvider: Return pull-request pages 9 ForgejoSourceControlProvider-->>GitManager: Return matching pull requests Suggested reviewers:
juliusmarminge,saphid
Merge Risk: External image Minimal · up to 0f65b
No merge-blocking issue is established; branch lookups can share a scan, while explicit refreshes can request fresh results.
Pre-merge checks: Passed 4
Check name Status Explanation Description check Passed The description explains the problem, the caching approach, scope, issue reference, verification results, limitations, and agent usage. It does not use the template headings, but it provides the requi… Title check Passed The title is concise, specific, and accurately describes the main change: sharing complete Gitea pull-request scans across branch lookups in the Forgejo provider. Linked Issues check Passed Issue #23551requires lower request cost for Gitea branch pull-request lookups. The provider now shares a complete repository scan by resolved server, account, CLI, and repository. The scan completes …Out of Scope Changes check Passed The changes stay within issue #23551. They add provider scan caching, cache-control propagation, and focused regression tests. The tests support the lookup-cost objective and verify preserved lookup b…Full details: Description check
Explanation
The description explains the problem, the caching approach, scope, issue reference, verification results, limitations, and agent usage. It does not use the template headings, but it provides the required information in a clear, focused format.
Full details: Linked Issues check
Explanation
Issue
#23551requires lower request cost for Gitea branch pull-request lookups. The provider now shares a complete repository scan by resolved server, account, CLI, and repository. The scan completes before caching, joins in-flight scans, and does not retain failed scans. Filtered Forgejo requests keep their existing path. GitManager disables provider caching for refresh and missing-PR refresh paths. Tests cover pagination, branch and source filtering, arbitrary bases, PR states, cache isolation, expiry, refresh, failures, and concurrent scans.
Full details: Out of Scope Changes check
Explanation
The changes stay within issue
#23551. They add provider scan caching, cache-control propagation, and focused regression tests. The tests support the lookup-cost objective and verify preserved lookup behavior. No unrelated production feature or unrelated test change is demonstrated.
Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.