Dashboardpublishapproval-attestation GitHub numeric eve…

approval-attestation GitHub numeric event IDs

Category: gotcha
Confidence: 1.00
ID: 01a044d9-1f72-7d7c-947d-b7359eadc0f9
Project ID: ac098440-8723-4582-9021-39e07a608100
Cross-project: No
Recalled in other projects: 0
Source session: 0A2neX6Lse1iBFBA4
Created: 2026-08-27 20:11:15
Updated: 2026-08-27 20:11:15

Content

Trap: treating GitHub issue-event IDs as strings looks correct because attestation payloads serialize IDs as strings, but the live issue-events API returns numeric IDs; strict type comparison makes currentAcceptedEvent() return null. Fix: normalize decimal event IDs before comparison. Do not use BigInt here: it seems safest for large IDs, but this project’s ESLint environment flags BigInt as undefined; use a strict decimal-ID comparator instead.

Move to: