//go:build phase2 package gitea_test import ( "gitea.weiker.me/rodin/review-bot/gitea" "gitea.weiker.me/rodin/review-bot/vcs" ) // Compile-time interface conformance assertions. // These will verify gitea.Client satisfies vcs interfaces once the Phase 2 // adapter bridges the method signature gaps: // // - PRReader: GetPullRequest returns *gitea.PullRequest (needs *vcs.PullRequest) // - PRReader: GetPullRequestFiles returns []gitea.ChangedFile (needs []vcs.ChangedFile) // - FileReader: GetFileContent lacks ref parameter // - Reviewer: PostReview uses (event, body, comments) instead of vcs.ReviewRequest // // Remove the phase2 build tag once the adapter is complete. var ( _ vcs.PRReader = (*gitea.Client)(nil) _ vcs.FileReader = (*gitea.Client)(nil) _ vcs.Reviewer = (*gitea.Client)(nil) _ vcs.Identity = (*gitea.Client)(nil) )