mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
If the `gh api` call to fetch a commit's verification status fails (rate limit, transient API error), the old code left `verification` empty and reported the commit as unsigned with a blank reason, sending a contributor off to re-sign a commit that may already be signed. Guard the call and annotate an API failure as its own distinct error instead. The end-of-job signing/rebase guidance is now gated on a separate UNSIGNED flag rather than the general FAILED flag, so an API failure no longer triggers the "re-sign and force-push" instructions, which previously contradicted the per-commit "not a signature failure" annotation. Verification lookups are now batched through a single call to the PR-commits endpoint, falling back to the existing per-commit call for any sha it doesn't cover (over its 250-commit cap, or any other reason), so the git-log-derived commit set stays authoritative either way. Follow-up from #3812, flagged by hectorvent in review.