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-05-29 19:48:59 -07:00
2026-05-22 08:12:52 -05:00
2026-04-20 08:52:51 -05:00
2026-04-24 12:15:53 -07:00
2026-04-24 15:50:32 -05:00
2026-03-26 11:12:25 -05:00
2026-05-22 08:12:52 -05:00
2026-04-24 15:50:32 -05:00
2026-05-22 08:12:52 -05:00
2026-03-20 08:50:00 -05:00
2026-03-03 08:45:26 -06:00
2026-05-22 08:12:52 -05:00
2026-04-17 09:44:19 -05:00
2026-04-15 21:13:56 -05:00
2026-05-28 07:33:51 -10:00
2026-05-25 07:25:26 -05:00
2026-05-22 15:27:54 -05:00
2026-06-09 15:30:44 -04:00
2026-05-22 08:12:52 -05:00
2026-06-09 15:30:44 -04:00
2026-05-06 06:32:37 -05:00
2026-05-06 06:32:37 -05:00
2026-06-09 15:30:44 -04:00
2026-05-06 06:30:44 -05:00
2026-03-13 16:22:34 -05:00
2026-04-21 12:24:11 -05:00
2026-03-20 07:42:36 -05:00
2026-05-26 06:41:23 -07:00
2026-05-15 08:54:55 -05:00
2026-05-09 18:22:17 -05:00
2026-05-11 14:28:22 -07:00
2026-04-24 12:15:53 -07:00
2026-04-29 16:37:34 -07:00
2026-05-11 07:33:13 -07:00
2026-04-24 12:15:53 -07:00
2026-05-29 08:25:29 -07:00
2026-05-25 07:25:26 -05:00
2026-04-02 09:11:49 -05:00
2026-04-03 15:59:42 -05:00
2026-06-09 15:30:44 -04:00
2026-04-15 21:13:56 -05:00
2026-06-09 15:30:44 -04:00
2026-06-09 21:18:22 -04:00
2026-04-01 21:05:48 +00:00
2026-03-12 08:50:31 -05:00
2026-04-20 06:01:49 -05:00
2026-05-03 11:30:48 -05:00
2026-05-03 11:30:48 -05:00
2026-05-29 08:25:29 -07:00
2026-04-04 14:04:33 -05:00
2026-04-09 06:16:05 -05:00
2026-05-26 06:41:23 -07:00
2026-05-28 23:30:18 -07:00
2026-04-17 09:44:19 -05:00
2026-03-03 08:45:26 -06:00
2026-03-20 16:40:27 -05:00
2026-05-09 22:18:12 -07:00
2026-05-03 08:58:53 -05:00
2026-03-24 11:48:59 -05:00
2026-04-24 15:50:32 -05:00
2026-05-12 09:37:15 -05:00
2026-05-26 06:41:23 -07:00
2026-04-21 20:15:11 -05:00
2026-05-29 08:25:29 -07:00
2026-04-28 16:46:45 -05:00
2026-05-29 08:25:29 -07:00
2026-04-24 18:03:41 -07:00
2026-03-13 16:22:34 -05:00
2026-04-10 22:26:21 -05:00
2026-05-22 08:12:52 -05:00
2026-03-14 15:43:56 -07:00
2026-05-15 10:20:02 -05:00
2026-05-12 17:38:24 -05:00
2026-05-18 09:32:12 -07:00
2026-03-13 16:58:29 -05:00
2026-03-13 16:22:34 -05:00
2026-05-22 08:12:52 -05:00
2026-03-13 16:22:34 -05:00
2026-03-13 16:22:34 -05:00
2026-03-13 16:22:34 -05:00
2026-05-20 10:37:11 -05:00
2026-05-13 16:23:04 -05:00
2026-05-17 17:15:06 -05:00
2026-03-13 16:22:34 -05:00
2026-05-10 07:34:12 -05:00
2026-05-05 07:42:57 -05:00
2026-05-10 07:34:12 -05:00
2026-03-13 16:22:34 -05:00
2026-05-05 07:42:57 -05:00
2026-03-13 16:22:34 -05:00
2026-05-09 18:22:17 -05:00
2026-03-13 16:22:34 -05:00
2026-03-13 16:22:34 -05:00
2026-03-13 16:22:34 -05:00
2026-03-13 16:22:34 -05:00
2026-05-25 07:25:26 -05:00
2026-05-28 07:33:51 -10:00
2026-05-22 08:12:52 -05:00
2026-05-19 13:46:02 -05:00
2026-04-20 10:39:37 -05:00
2026-05-05 07:42:57 -05:00
2026-03-16 15:11:01 -05:00
2026-05-25 13:12:41 -05:00
2026-05-17 16:30:34 -05:00
2026-04-24 15:50:32 -05:00
2026-04-24 15:50:32 -05:00
2026-04-24 15:50:32 -05:00
2026-04-24 18:03:41 -07:00
2026-05-19 15:50:23 -05:00
2026-05-13 16:23:04 -05:00
2026-05-13 16:23:04 -05:00
2026-04-09 06:16:05 -05:00
2026-04-14 12:57:11 -05:00
2026-05-28 07:33:51 -10:00
2026-03-17 10:12:44 -05:00
2026-03-17 09:36:35 -05:00
2026-04-20 06:19:48 -05:00
2026-04-24 12:15:53 -07:00
2026-04-04 17:48:54 -05:00
2026-05-28 07:33:51 -10:00