d.pullrequest might be undefined