//go:build phase2 package vcs_test import ( "gitea.weiker.me/rodin/review-bot/gitea" "gitea.weiker.me/rodin/review-bot/vcs" ) // Compile-time assertion: documents the gap between gitea.Client and vcs.Client. // Guarded by the "phase2" build tag — enable once the Gitea adapter bridges these gaps: // // 1. PostReview signature mismatch: // gitea.Client: PostReview(ctx, owner, repo, number, event, body string, comments []gitea.ReviewComment) // vcs.Reviewer: PostReview(ctx, owner, repo, number, req vcs.ReviewRequest) // // 2. GetFileContent signature mismatch: // gitea.Client: GetFileContent(ctx, owner, repo, filepath string) [no ref; uses default branch] // vcs.FileReader: GetFileContent(ctx, owner, repo, path, ref string) // (gitea.Client has GetFileContentRef for the ref variant) // // 3. ReviewComment type mismatch: // gitea.ReviewComment uses NewPosition int64 (Gitea line-number convention) // vcs.ReviewComment uses Position int (GitHub diff-position convention) // // The Gitea adapter (Phase 2) will wrap gitea.Client to bridge these gaps. var _ vcs.Client = (*gitea.Client)(nil)