-
fix(get_file_contents): Restore correct implementation from #1582
发布于
2025-12-16 22:46:47 +00:00 | 635 次提交 在此版本后已推送到 mainThe refactor incorrectly restructured the GetFileContents logic:
- Move 'if rawOpts.SHA != "" { ref = rawOpts.SHA }' before GetContents call
- Always call GetContents first (not conditionally based on path suffix)
- Restore matchFiles helper function for proper fallback handling
- Use matchFiles when Contents API fails or raw API fails
This aligns with the improvements from PR #1582 that was merged into main.
下载附件