added pullrequest handler with JSON parsing