Implemented getPullRequests method