Refactor PullRequestHook signature.

May parse hook payload only once.