githubPolling: refactor payload validation