scripts/github: fix commit fetching