Files
paperclip/server/src/services
Chris Farhood 044d730525 fork: resolve Gitea branch refs via the branches endpoint
Gitea's /repos/{o}/{r}/commits/{ref} only resolves 40-hex SHAs —
a branch name like "main" returns 404 even when the branch exists.
GitHub's API is more lenient and resolves branch names server-side.
resolveGiteaPinnedRef was calling /commits/{ref} and 404ing on
branch refs, so the entire import path failed before it could
read the tree. updateStatus already used the branches endpoint
correctly; this aligns resolveGiteaPinnedRef with it.

resolveGiteaCommitSha is now a SHA-only helper that refuses to
make the API call for non-SHA refs (matches Gitea's contract).
Test mocks updated to return the branch response shape.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-09 21:18:22 -04:00
..
2026-03-20 08:50:00 -05:00
2026-05-06 06:30:44 -05:00
2026-03-13 16:22:34 -05:00
2026-05-05 07:42:57 -05:00