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.
Branch protection already requires signed/verified commits before
merge, but that only surfaces as a generic red status on the merge
button. This adds a check that reads the same verification field
GitHub's merge gate uses and annotates the exact commit(s) that need
signing, with the fix command, before a contributor ever reaches the
merge button.