fix(github): add GetFileContentAtRef and fix conformance test

- Implement GetFileContentAtRef on *Client to satisfy vcs.PRReader interface
- Add escapePath and decodeBase64Content helpers
- Fix conformance_test.go to properly import and qualify github.Client
  (was using unqualified Client in package github_test)

Fixes CI failure: the PRReader interface requires GetFileContentAtRef
but it was missing from this PR (only present in the file-reader PR).
This commit is contained in:
claw
2026-05-12 21:21:01 -07:00
committed by Aaron Weiker
parent d0b7f09772
commit 289b400bfd
2 changed files with 75 additions and 2 deletions
+7 -2
View File
@@ -1,5 +1,10 @@
package github_test
import "gitea.weiker.me/rodin/review-bot/vcs"
import (
"gitea.weiker.me/rodin/review-bot/github"
"gitea.weiker.me/rodin/review-bot/vcs"
)
var _ vcs.PRReader = (*Client)(nil)
// Compile-time interface conformance assertion.
// Verifies github.Client satisfies vcs.PRReader.
var _ vcs.PRReader = (*github.Client)(nil)